Classes | |
| class | StringException |
| This is thrown instread of a std::exception when a gpstk::StringUtils function fails. More... | |
| class | HexDumpDataConfig |
| Class for configuring the appearance of hexDumpData() output. More... | |
Functions | |
| void | gpstk::StringUtils::hexDumpData (std::ostream &s, const std::string &data, unsigned indent=0, HexDumpDataConfig cfg=HexDumpDataConfig()) |
| Perform a formatted hex-dump of the (potentially) binary data to the given stream. | |
| void | gpstk::StringUtils::hexDumpData (std::ostream &s, const std::string &data, const std::string &tag, HexDumpDataConfig cfg=HexDumpDataConfig()) |
| Perform a formatted hex-dump of the (potentially) binary data to the given stream. | |
| std::string & | gpstk::StringUtils::stripLeading (std::string &s, const std::string &aString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning of another string. | |
| std::string | gpstk::StringUtils::stripLeading (const std::string &s, const std::string &aString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning of another string const version. | |
| std::string & | gpstk::StringUtils::stripLeading (std::string &s, const char *pString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning of another string. | |
| std::string | gpstk::StringUtils::stripLeading (const std::string &s, const char *pString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning of another string const version. | |
| std::string & | gpstk::StringUtils::stripLeading (std::string &s, const char aCharacter, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip character(s) from the beginning of a string. | |
| std::string | gpstk::StringUtils::stripLeading (const std::string &s, const char aCharacter, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip character(s) from the beginning of a string const version. | |
| std::string & | gpstk::StringUtils::stripLeading (std::string &s, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip blanks from the beginning of a string. | |
| std::string | gpstk::StringUtils::stripLeading (const std::string &s, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip blanks from the beginning of a string const version. | |
| std::string & | gpstk::StringUtils::stripTrailing (std::string &s, const std::string &aString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the end of another string. | |
| std::string | gpstk::StringUtils::stripTrailing (const std::string &s, const std::string &aString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the end of another string const version. | |
| std::string & | gpstk::StringUtils::stripTrailing (std::string &s, const char *pString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the end of another string. | |
| std::string | gpstk::StringUtils::stripTrailing (const std::string &s, const char *pString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the end of another string const version. | |
| std::string & | gpstk::StringUtils::stripTrailing (std::string &s, const char aCharacter, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip character(s) from the end of a string. | |
| std::string | gpstk::StringUtils::stripTrailing (const std::string &s, const char aCharacter, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip character(s) from the end of a string const version. | |
| std::string & | gpstk::StringUtils::stripTrailing (std::string &s, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip blanks from the end of a string. | |
| std::string | gpstk::StringUtils::stripTrailing (const std::string &s, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip blanks from the end of a string const version. | |
| std::string & | gpstk::StringUtils::strip (std::string &s, const std::string &aString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning and end of another string. | |
| std::string | gpstk::StringUtils::strip (const std::string &s, const std::string &aString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning and end of another string const version. | |
| std::string & | gpstk::StringUtils::strip (std::string &s, const char *pString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning and end of another string. | |
| std::string | gpstk::StringUtils::strip (const std::string &s, const char *pString, std::string::size_type num=std::string::npos) throw (StringException) |
| Remove a string from the beginning and end of another string cosnt version. | |
| std::string & | gpstk::StringUtils::strip (std::string &s, const char aCharacter, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip character(s) from the beginning and end of a string. | |
| std::string | gpstk::StringUtils::strip (const std::string &s, const char aCharacter, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip character(s) from the beginning and end of a string const version. | |
| std::string & | gpstk::StringUtils::strip (std::string &s, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip blanks from the beginning and end of a string. | |
| std::string | gpstk::StringUtils::strip (const std::string &s, std::string::size_type num=std::string::npos) throw (StringException) |
| Strip blanks from the beginning and end of a string const version. | |
| std::string | gpstk::StringUtils::translate (const std::string &aString, const std::string &inputChars, const std::string &outputChars, const char pad= ' ') |
| Converts all of the receiver's characters that are in the first specified string to the corresponding character in the second specified string. | |
| std::string | gpstk::StringUtils::change (const std::string &aString, const std::string &inputString, const std::string &outputString, std::string::size_type startPos=0, unsigned numChanges=(std::numeric_limits< unsigned >::max)()) |
| Changes occurrences of a specified pattern to a specified replacement string. | |
| std::string & | gpstk::StringUtils::change (std::string &aString, const std::string &inputString, const std::string &outputString, std::string::size_type startPos=0, unsigned numChanges=(std::numeric_limits< unsigned >::max)()) |
| Changes occurrences of a specified pattern to a specified replacement string. | |
| std::string & | gpstk::StringUtils::rightJustify (std::string &s, const std::string::size_type length, const char pad= ' ') throw (StringException) |
| Right-justifies the receiver in a string of the specified length. | |
| std::string | gpstk::StringUtils::rightJustify (const std::string &s, const std::string::size_type length, const char pad= ' ') throw (StringException) |
| Right-justifies the receiver in a string of the specified length (const version). | |
| std::string & | gpstk::StringUtils::leftJustify (std::string &s, const std::string::size_type length, const char pad= ' ') throw (StringException) |
| Left-justifies the receiver in a string of the specified length. | |
| std::string | gpstk::StringUtils::leftJustify (const std::string &s, const std::string::size_type length, const char pad= ' ') throw (StringException) |
| Left-justifies the receiver in a string of the specified length (const version). | |
| std::string & | gpstk::StringUtils::center (std::string &s, const std::string::size_type length, const char pad= ' ') throw (StringException) |
| Change the length of a string by adding to the beginning and end. | |
| std::string | gpstk::StringUtils::center (const std::string &s, const std::string::size_type length, const char pad= ' ') throw (StringException) |
| Change the length of a string by adding to the beginning and end (const version). | |
| double | gpstk::StringUtils::asDouble (const std::string &s) |
| Convert a string to a double precision floating point number. | |
| long | gpstk::StringUtils::asInt (const std::string &s) |
| Convert a string to an integer. | |
| unsigned long | gpstk::StringUtils::asUnsigned (const std::string &s) |
| Convert a string to an unsigned integer. | |
| float | gpstk::StringUtils::asFloat (const std::string &s) throw (StringException) |
| Convert a string to a single precision floating point number. | |
| long double | gpstk::StringUtils::asLongDouble (const std::string &s) throw (StringException) |
| Convert a string to a big precision floating point number. | |
| template<class X> | |
| X | gpstk::StringUtils::asData (const std::string &s) throw (StringException) |
| Convert a value in a string to a type specified by the template class. | |
| std::string | gpstk::StringUtils::asString (const long double x, const std::string::size_type precision=21) |
| Convert a long double to a string in fixed notation. | |
| std::string | gpstk::StringUtils::asString (const double x, const std::string::size_type precision=17) |
| Convert a double to a string in fixed notation. | |
| template<class X> | |
| std::string | gpstk::StringUtils::asString (const X x) |
| Convert any old object to a string. | |
| std::string & | gpstk::StringUtils::d2x (std::string &s) throw (StringException) |
| Convert a decimal string to a hexadecimal string. | |
| std::string | gpstk::StringUtils::d2x (const std::string &s) throw (StringException) |
| Convert a decimal string to a hexadecimal string. | |
| std::string & | gpstk::StringUtils::x2d (std::string &s) throw (StringException) |
| std::string | gpstk::StringUtils::x2d (const std::string &s) throw (StringException) |
| Convert a hexadecimal string to a decimal string. | |
| std::string & | gpstk::StringUtils::c2x (std::string &s) throw (StringException) |
| Convert a character string to a hexadecimal string. | |
| std::string | gpstk::StringUtils::c2x (const std::string &s) throw (StringException) |
| Convert a character string to a hexadecimal string. | |
| unsigned int | gpstk::StringUtils::x2uint (const std::string &s) throw (StringException) |
| std::string | gpstk::StringUtils::int2x (const unsigned int &i) throw (StringException) |
| Convert an int to a string. | |
| std::string & | gpstk::StringUtils::replaceAll (std::string &s, const std::string &oldString, const std::string &newString) throw (StringException) |
| Replace all instances of oldString with newString in s. | |
| bool | gpstk::StringUtils::isDigitString (const std::string &s) |
| isDigitString is exactly like the C function isDigit except it checks all the characters of string s to see if they are all digits. | |
| bool | gpstk::StringUtils::isDecimalString (const std::string &s) |
| isDecimalString is like isDigitString() except it allows a single period ('.') character in the string. | |
| bool | gpstk::StringUtils::isScientificString (const std::string &s) |
| isScientificString extends isDecimalString() to allow a single exponent (E,e,D,d) character between a decimal string and a (possibly empty) digit string. | |
| bool | gpstk::StringUtils::isAlphaString (const std::string &s) |
| isAlphaString is exactly like the C function isAlpha except it checks all the characters of string s to see if they are all alphabet characters. | |
| std::string | gpstk::StringUtils::matches (const std::string &s, const std::string &aPattern, const char zeroOrMore= '*', const char oneOrMore= '+', const char anyChar= '.') throw (StringException) |
| Perform pattern matching on strings. | |
| bool | gpstk::StringUtils::isLike (const std::string &s, const std::string &aPattern, const char zeroOrMore= '*', const char oneOrMore= '+', const char anyChar= '.') throw (StringException) |
| Perform pattern matching on strings. | |
| bool | gpstk::StringUtils::isLike (const std::string &s, const char *pPattern, const char zeroOrMore= '*', const char oneOrMore= '+', const char anyChar= '.') throw (StringException) |
| Perform pattern matching on strings. | |
| template<class T> | |
| std::string | gpstk::StringUtils::formattedPrint (const std::string &fmt, const std::string &pat, const std::string &rep, T to) throw (StringException) |
| Work-horse method for printf. | |
| std::string | gpstk::StringUtils::subString (const std::string &s, const std::string::size_type startPos=0, const std::string::size_type length=std::string::npos, const char pad= ' ') throw (StringException) |
| Get a substring of a string. | |
| std::string & | gpstk::StringUtils::lowerCase (std::string &s) |
| Change all upper-case letters in a string to lower-case. | |
| std::string | gpstk::StringUtils::lowerCase (const std::string &s) |
| Change all upper-case letters in a string to lower-case. | |
| std::string & | gpstk::StringUtils::upperCase (std::string &s) |
| Change all lower-case letters in a string to upper-case. | |
| std::string | gpstk::StringUtils::upperCase (const std::string &s) |
| Change all lower-case letters in a string to upper-case. | |
| std::string | gpstk::StringUtils::memToString (const void *p, const std::string::size_type size) |
| Make a string from a void pointer. | |
| std::string | gpstk::StringUtils::firstWord (const std::string &s, const char delimiter= ' ') throw (StringException) |
| Returns the first word in string s without modifying the string. | |
| int | gpstk::StringUtils::numWords (const std::string &s, const char delimiter= ' ') throw (StringException) |
| Counts the number of words in s and returns it. | |
| std::string | gpstk::StringUtils::words (const std::string &s, const std::string::size_type firstWord=0, const std::string::size_type numWords=std::string::npos, const char delimiter= ' ') throw (StringException) |
| Returns numWords words starting with firstWord from s (if any). | |
| std::string | gpstk::StringUtils::word (const std::string &s, const std::string::size_type wordNum=0, const char delimiter= ' ') throw (StringException) |
| Returns word number wordNum from s (if any). | |
| std::string | gpstk::StringUtils::stripFirstWord (std::string &s, const char delimiter= ' ') throw (StringException) |
| Removes the first word off string s and returns it. | |
| std::vector< std::string > | gpstk::StringUtils::split (const std::string &str, const char delimiter= ' ') throw (StringException) |
| Split a string str into words as defined by delimiter. | |
| std::string & | gpstk::StringUtils::removeWords (std::string &s, const std::string::size_type first=0, const std::string::size_type wordsToReplace=std::string::npos, const char delimiter= ' ') throw (StringException) |
| Removes indicated words from the string s. | |
| std::string | gpstk::StringUtils::doub2sci (const double &d, const std::string::size_type length, const std::string::size_type expLen, const bool showSign=true, const bool checkSwitch=true) |
| Convert a double to a scientific notation number. | |
| std::string | gpstk::StringUtils::doubleToScientific (const double &d, const std::string::size_type length, const std::string::size_type precision, const std::string::size_type explen, bool showPlus=false) |
| Convert a double to scientific notation; this routine works better, on Windows particularly, than doub2sci. | |
| std::string & | gpstk::StringUtils::sci2for (std::string &aStr, const std::string::size_type startPos=0, const std::string::size_type length=std::string::npos, const std::string::size_type expLen=3, const bool checkSwitch=true) throw (StringException) |
| Convert scientific notation to FORTRAN notation. | |
| std::string | gpstk::StringUtils::doub2for (const double &d, const std::string::size_type length, const std::string::size_type expLen, const bool checkSwitch=true) throw (StringException) |
| Convert double precision floating point to a string containing the number in FORTRAN notation. | |
| double | gpstk::StringUtils::for2doub (const std::string &aStr, const std::string::size_type startPos=0, const std::string::size_type length=std::string::npos) |
| Convert FORTRAN representation of a double precision floating point in a string to a number. | |
| std::string | gpstk::StringUtils::printable (const std::string &aStr) throw (StringException) |
| Change a string into printable characters. | |
| std::string & | gpstk::StringUtils::prettyPrint (std::string &aStr, const std::string &lineDelim="\n", const std::string &indent="", const std::string &firstIndent=" ", const std::string::size_type len=80, const char wordDelim= ' ') throw (StringException) |
| Nicely expands the input string into several lines, non-const version. | |
| std::string | gpstk::StringUtils::prettyPrint (const std::string &aStr, const std::string &lineDelim="\n", const std::string &indent="", const std::string &firstIndent=" ", const std::string::size_type len=80, const char wordDelim= ' ') throw (StringException) |
| Const version of prettyPrint, which nicely expands the input string into several lines. | |
| std::vector< std::string > | gpstk::StringUtils::split (const std::string &aStr, const std::string &theDelimiters=" ", bool trimWhitespace=false, bool ignoreEmpty=true) |
| Split a string by some delimiters. | |
|
|
Convert a value in a string to a type specified by the template class. The template class type must have stream operators defined.
Definition at line 1744 of file StringUtils.hpp. References GPSTK_THROW. |
|
|
|
Convert a string to a single precision floating point number.
Definition at line 1709 of file StringUtils.hpp. References GPSTK_THROW. Referenced by main(). |
|
|
Convert a string to an integer.
Definition at line 740 of file StringUtils.hpp. Referenced by SVExclusionList::addFile(), EOPStore::addIERSFile(), gpstk::StringUtils::asString(), AshtechEPB::decode(), CommandOptionParser::displayUsage(), ConfDataReader::fetchListValueAsInt(), gpstk::GetCarrierBand(), TimeTag::getInfo(), ConfDataReader::getValueAsInt(), FileSpec::init(), EOPPrediction::loadFile(), SatOrbitStore::loadGNV1BFile(), EOPDataStore::loadSTKFile(), EarthOceanTide::loadTideFile(), main(), gpstk::mixedScanTime(), Test::otherTest(), ConfDataItem::parse(), IonexHeader::ParseDcbRecord(), RinexObsHeader::ParseHeaderRecord(), Rinex3ObsHeader::ParseHeaderRecord(), Rinex3ClockHeader::ParseHeaderRecord(), IonexHeader::ParseHeaderRecord(), PackedNavBits::rawBitInput(), SolarSystem::readASCIIdata(), PlanetEphemeris::readASCIIdata(), SolarSystem::readASCIIheader(), PlanetEphemeris::readASCIIheader(), YumaData::reallyGetRecord(), SP3Header::reallyGetRecord(), SP3Data::reallyGetRecord(), SMODFData::reallyGetRecord(), SEMHeader::reallyGetRecord(), SEMData::reallyGetRecord(), RinexObsData::reallyGetRecord(), RinexNavHeader::reallyGetRecord(), RinexMetHeader::reallyGetRecord(), RinexClockHeader::reallyGetRecord(), RinexClockData::reallyGetRecord(), Rinex3ObsData::reallyGetRecord(), Rinex3NavHeader::reallyGetRecord(), MSCData::reallyGetRecord(), IonexData::reallyGetRecord(), FICData::reallyGetRecord(), gpstk::reallyGetRecordVer2(), gpstk::scanTime(), YDSTime::setFromInfo(), UnixTime::setFromInfo(), MJD::setFromInfo(), JulianDate::setFromInfo(), GPSWeekZcount::setFromInfo(), GPSWeekSecond::setFromInfo(), GPSWeek::setFromInfo(), CivilTime::setFromInfo(), ANSITime::setFromInfo(), and Position::setToString(). |
|
|
Convert a string to a big precision floating point number.
Definition at line 1726 of file StringUtils.hpp. References GPSTK_THROW. Referenced by main(), gpstk::mixedScanTime(), MJD::setFromInfo(), and JulianDate::setFromInfo(). |
|
|
Convert any old object to a string. The class must have stream operators defined.
Definition at line 1776 of file StringUtils.hpp. References gpstk::StringUtils::asInt(), and gpstk::StringUtils::stripLeading(). |
|
||||||||||||
|
Convert a double to a string in fixed notation.
Definition at line 1768 of file StringUtils.hpp. |
|
||||||||||||
|
Convert a long double to a string in fixed notation.
Definition at line 1761 of file StringUtils.hpp. |
|
|
Convert a string to an unsigned integer.
Definition at line 748 of file StringUtils.hpp. Referenced by MSCStore::findMSC(), and ObsEphReaderFramework::initialize(). |
|
|
Convert a character string to a hexadecimal string.
Definition at line 868 of file StringUtils.hpp. Referenced by gpstk::StringUtils::printable(). |
|
|
Convert a character string to a hexadecimal string. Modify the string such that the character string is now represented as series of hexadecimal digits.
Definition at line 1817 of file StringUtils.hpp. |
|
||||||||||||||||
|
Change the length of a string by adding to the beginning and end (const version). The string s is modified to the specified length. If the string is shorter than length, then the string is truncated with the left-most length characters remaining. Otherwise, characters are added to the beginning and end of the string until the string is the specified length, where the number of characters added to the beginning and the end does not differ by more than one so the original string is centered.
Definition at line 721 of file StringUtils.hpp. Referenced by main(). |
|
||||||||||||||||
|
Change the length of a string by adding to the beginning and end. The string s is modified to the specified length. If the string is shorter than length, then the string is truncated with the left-most length characters remaining. Otherwise, characters are added to the beginning and end of the string until the string is the specified length, where the number of characters added to the beginning and the end does not differ by more than one so the original string is centered.
Definition at line 1679 of file StringUtils.hpp. Referenced by SolarSystem::computeState(), PlanetEphemeris::computeState(), ReferenceFrames::getECEFPosition(), ReferenceFrames::getECEFVelocity(), ReferenceFrames::getJ2kPosVel(), and IERS::planetJ2kPosVel(). |
|
||||||||||||||||||||||||
|
Changes occurrences of a specified pattern to a specified replacement string. You can specify the number of changes to perform. The default is to change all occurrences of the pattern. You can also specify the position in the receiver at which to begin.
Definition at line 1602 of file StringUtils.hpp. Referenced by ObsEphReaderFramework::initialize(). |
|
||||||||||||||||||||||||
|
Changes occurrences of a specified pattern to a specified replacement string. You can specify the number of changes to perform. The default is to change all occurrences of the pattern. You can also specify the position in the receiver at which to begin.
Definition at line 1593 of file StringUtils.hpp. |
|
|
Convert a decimal string to a hexadecimal string. Given a string containing a decimal integer, convert the integer from base 10 to base 16 and return the result. No prefix is added. Only the first decimal encountered is changed; the rest of the string is unmodified.
Definition at line 825 of file StringUtils.hpp. Referenced by main(). |
|
|
Convert a decimal string to a hexadecimal string. Modify the string such that the decimal integer is now represented as hexadecimal. Only the first decimal encountered is changed; the rest of the string is unmodified.
Definition at line 1784 of file StringUtils.hpp. |
|
||||||||||||||||||||
|
Convert double precision floating point to a string containing the number in FORTRAN notation. As an example, the number 156360 becomes ".15636D6".
Definition at line 2609 of file StringUtils.hpp. Referenced by SMODFData::reallyPutRecord(), SEMData::reallyPutRecord(), RinexNavHeader::reallyPutRecord(), FICData::reallyPutRecord(), SolarSystem::writeASCIIdata(), PlanetEphemeris::writeASCIIdata(), SolarSystem::writeASCIIheader(), and PlanetEphemeris::writeASCIIheader(). |
|
||||||||||||||||||||||||
|
Convert a double to a scientific notation number.
Definition at line 2431 of file StringUtils.hpp. Referenced by SMODFData::doub2funny(). |
|
||||||||||||||||||||||||
|
Convert a double to scientific notation; this routine works better, on Windows particularly, than doub2sci.
Definition at line 2465 of file StringUtils.hpp. Referenced by RinexClockData::reallyPutRecord(), and Rinex3NavHeader::reallyPutRecord(). |
|
||||||||||||
|
Returns the first word in string s without modifying the string.
Definition at line 2223 of file StringUtils.hpp. Referenced by OceanLoading::initializeSites(), main(), gpstk::mixedScanTime(), gpstk::StringUtils::numWords(), ConfDataItem::parse(), and gpstk::scanTime(). |
|
||||||||||||||||
|
Convert FORTRAN representation of a double precision floating point in a string to a number. As an example, the number ".15636D6" becomes 156360.
Definition at line 2640 of file StringUtils.hpp. Referenced by SolarSystem::readASCIIdata(), PlanetEphemeris::readASCIIdata(), SolarSystem::readASCIIheader(), PlanetEphemeris::readASCIIheader(), SMODFData::reallyGetRecord(), RinexNavHeader::reallyGetRecord(), Rinex3NavHeader::reallyGetRecord(), and FICData::reallyGetRecord(). |
|
||||||||||||||||||||
|
Work-horse method for printf. Substitutes patterns matching pat with rep. Use only one pattern/token at a time! This used to be DayTime::iprint().
Definition at line 2103 of file StringUtils.hpp. References gpstk::StringUtils::replaceAll(). Referenced by YDSTime::printError(), UnixTime::printError(), MJD::printError(), JulianDate::printError(), GPSWeekZcount::printError(), GPSWeekSecond::printError(), GPSWeek::printError(), CivilTime::printError(), ANSITime::printError(), YDSTime::printf(), UnixTime::printf(), Position::printf(), MJD::printf(), JulianDate::printf(), GPSWeekZcount::printf(), GPSWeekSecond::printf(), GPSWeek::printf(), CivilTime::printf(), and ANSITime::printf(). |
|
||||||||||||||||||||
|
Perform a formatted hex-dump of the (potentially) binary data to the given stream.
Definition at line 1369 of file StringUtils.hpp. References cfg. Referenced by EngAlmanac::dump(), main(), AshtechData::readBody(), MDPHeader::readHeader(), AshtechData::readHeader(), MDPHeader::reallyGetRecord(), ATSData::reallyGetRecord(), MDPHeader::reallyPutRecord(), and ATSData::reallyPutRecord(). |
|
||||||||||||||||||||
|
Perform a formatted hex-dump of the (potentially) binary data to the given stream.
Definition at line 1362 of file StringUtils.hpp. References cfg. |
|
|
Convert an int to a string.
Definition at line 1910 of file StringUtils.hpp. References GPSTK_RETHROW. |
|
|
isAlphaString is exactly like the C function isAlpha except it checks all the characters of string s to see if they are all alphabet characters.
Definition at line 2004 of file StringUtils.hpp. Referenced by CommandOptionWithStringArg::checkArguments(). |
|
|
isDecimalString is like isDigitString() except it allows a single period ('.') character in the string.
Definition at line 1967 of file StringUtils.hpp. References index(). |
|
|
isDigitString is exactly like the C function isDigit except it checks all the characters of string s to see if they are all digits.
Definition at line 1953 of file StringUtils.hpp. Referenced by CommandOptionWithNumberArg::checkArguments(), MSCStore::findMSC(), EOPDataStore::loadSTKFile(), and ConfDataItem::parse(). |
|
||||||||||||||||||||||||
|
Perform pattern matching on strings. Looks for a pattern in a string. Wildcards are allowed. Uses POSIX regular expressions.
Definition at line 999 of file StringUtils.hpp. Referenced by main(), gpstk::mixedScanTime(), gpstk::scanTime(), FileHunter::searchHelper(), and CivilTime::setFromInfo(). |
|
||||||||||||||||||||||||
|
Perform pattern matching on strings. Looks for a pattern in a string. Wildcards are allowed. Uses POSIX regular expressions.
Definition at line 974 of file StringUtils.hpp. |
|
|
isScientificString extends isDecimalString() to allow a single exponent (E,e,D,d) character between a decimal string and a (possibly empty) digit string.
Definition at line 1990 of file StringUtils.hpp. |
|
||||||||||||||||
|
Left-justifies the receiver in a string of the specified length (const version). If the new length (length) is larger than the current length, the string is extended by the pad character (pad). The default pad character is a blank.
Definition at line 675 of file StringUtils.hpp. Referenced by gpstk::DisplayExtendedRinexObsTypes(), GDCconfiguration::DisplayParameterUsage(), gpstk::DisplayStandardRinexObsTypes(), CommandOptionParser::displayUsage(), dtft(), gpstk::dumpGnssDataMap(), main(), gpstk::operator<<(), SolarSystem::readASCIIdata(), PlanetEphemeris::readASCIIdata(), SP3Data::reallyGetRecord(), SP3Header::reallyPutRecord(), SEMHeader::reallyPutRecord(), RinexNavHeader::reallyPutRecord(), RinexMetHeader::reallyPutRecord(), RinexClockHeader::reallyPutRecord(), Rinex3NavHeader::reallyPutRecord(), MSCData::reallyPutRecord(), IonexData::reallyPutRecord(), FICHeader::reallyPutRecord(), AntexData::reallyPutRecord(), SolarSystem::writeASCIIdata(), PlanetEphemeris::writeASCIIdata(), SolarSystem::writeASCIIheader(), PlanetEphemeris::writeASCIIheader(), SolarSystem::writeBinaryFile(), PlanetEphemeris::writeBinaryFile(), RinexObsHeader::WriteHeaderRecords(), Rinex3ObsHeader::WriteHeaderRecords(), IonexHeader::WriteHeaderRecords(), AntexHeader::WriteHeaderRecords(), ConfDataWriter::writeVariable(), and ConfDataWriter::writeVariableList(). |
|
||||||||||||||||
|
Left-justifies the receiver in a string of the specified length. If the new length (length) is larger than the current length, the string is extended by the pad character (pad). The default pad character is a blank.
Definition at line 1653 of file StringUtils.hpp. |
|
|
Change all upper-case letters in a string to lower-case. Does not modify the original string.
Definition at line 1056 of file StringUtils.hpp. References gpstk::StringUtils::upperCase(). Referenced by SatOrbitStore::loadGNV1BFile(), gpstk::mixedScanTime(), gpstk::scanTime(), and CivilTime::setFromInfo(). |
|
|
Change all upper-case letters in a string to lower-case. s is modified as a result.
Definition at line 2193 of file StringUtils.hpp. |
|
||||||||||||||||||||||||
|
Perform pattern matching on strings. Looks for a pattern in a string. Wildcards are allowed. Uses POSIX regular expressions.
Definition at line 2016 of file StringUtils.hpp. References gpstk::StringUtils::replaceAll(). Referenced by EOPStore::addFile(), and main(). |
|
||||||||||||
|
Make a string from a void pointer. This function should not be used. Instead, use the string constructor as follows: string((char*)p, size);
Definition at line 2211 of file StringUtils.hpp. |
|
||||||||||||
|
Counts the number of words in s and returns it.
Definition at line 2257 of file StringUtils.hpp. References gpstk::StringUtils::firstWord(), and gpstk::StringUtils::stripLeading(). Referenced by ConfDataReader::getNumItem(), CommandOptionWithSimpleTimeArg::getTimeSpec(), ObsEphReaderFramework::initialize(), OceanLoading::initializeSites(), and main(). |
|
||||||||||||||||||||||||||||
|
Const version of prettyPrint, which nicely expands the input string into several lines.
Definition at line 1305 of file StringUtils.hpp. Referenced by CommandOptionParser::displayUsage(), CommandOption::getDescription(), and main(). |
|
||||||||||||||||||||||||||||
|
Nicely expands the input string into several lines, non-const version.
Definition at line 2711 of file StringUtils.hpp. |
|
|
Change a string into printable characters. Control characters (0-26) are changed to ^@, ^A, etc. Other non-printable characters are changed to hex sequences enclosed in <>.
Definition at line 2673 of file StringUtils.hpp. References gpstk::StringUtils::c2x(). Referenced by main(). |
|
||||||||||||||||||||
|
Removes indicated words from the string s. s is modified as a result.
Definition at line 2378 of file StringUtils.hpp. Referenced by main(). |
|
||||||||||||||||
|
Replace all instances of oldString with newString in s.
Definition at line 1930 of file StringUtils.hpp. Referenced by gpstk::StringUtils::formattedPrint(), main(), and gpstk::StringUtils::matches(). |
|
||||||||||||||||
|
Right-justifies the receiver in a string of the specified length (const version). If the receiver's data is shorter than the requested length (length), it is padded on the left with the pad character (pad). The default pad character is a blank.
Definition at line 642 of file StringUtils.hpp. Referenced by RinexClockHeader::dump(), FileHunter::filterHelper(), main(), gpstk::operator<<(), SP3Header::reallyPutRecord(), SP3Data::reallyPutRecord(), SMODFData::reallyPutRecord(), SEMHeader::reallyPutRecord(), SEMData::reallyPutRecord(), RinexObsData::reallyPutRecord(), RinexNavHeader::reallyPutRecord(), RinexMetHeader::reallyPutRecord(), RinexMetData::reallyPutRecord(), RinexClockHeader::reallyPutRecord(), RinexClockData::reallyPutRecord(), Rinex3ObsData::reallyPutRecord(), Rinex3NavHeader::reallyPutRecord(), MSCData::reallyPutRecord(), IonexData::reallyPutRecord(), AntexData::reallyPutRecord(), gpstk::reallyPutRecordVer2(), IonexHeader::DCB::toString(), FileSpec::toString(), SolarSystem::writeASCIIheader(), PlanetEphemeris::writeASCIIheader(), RinexObsHeader::WriteHeaderRecords(), Rinex3ObsHeader::WriteHeaderRecords(), IonexHeader::WriteHeaderRecords(), and AntexHeader::WriteHeaderRecords(). |
|
||||||||||||||||
|
Right-justifies the receiver in a string of the specified length. If the receiver's data is shorter than the requested length (length), it is padded on the left with the pad character (pad). The default pad character is a blank.
Definition at line 1627 of file StringUtils.hpp. |
|
||||||||||||||||||||||||
|
Convert scientific notation to FORTRAN notation. As an example, the string "1.5636E5" becomes " .15636D6". Note that the first character of the string will be '-' if the number is negative or ' ' if the first character is positive.
Definition at line 2506 of file StringUtils.hpp. References GPSTK_THROW. |
|
||||||||||||||||||||
|
Split a string by some delimiters.
Definition at line 1324 of file StringUtils.hpp. References gpstk::StringUtils::strip(). Referenced by SRI::reshape(). |
|
||||||||||||
|
Split a string str into words as defined by delimiter.
Definition at line 2355 of file StringUtils.hpp. |
|
||||||||||||
|
Strip blanks from the beginning and end of a string const version. Occurrences of the space character appearing at the beginning and end of the string s are removed.
Definition at line 544 of file StringUtils.hpp. Referenced by ConfDataReader::fetchListValue(), ConfDataItem::format(), AntexReader::getAntenna(), AntexReader::getAntennaNoRadome(), SatOrbitStore::loadGNV1BFile(), ProblemSatFilter::loadSatelliteProblemFile(), main(), ConfDataItem::parse(), IonexHeader::ParseDcbRecord(), RinexObsHeader::ParseHeaderRecord(), Rinex3ObsHeader::ParseHeaderRecord(), Rinex3ClockHeader::ParseHeaderRecord(), IonexHeader::ParseHeaderRecord(), RinexNavHeader::reallyGetRecord(), RinexMetHeader::reallyGetRecord(), RinexClockHeader::reallyGetRecord(), RinexClockData::reallyGetRecord(), Rinex3NavHeader::reallyGetRecord(), and gpstk::StringUtils::split(). |
|
||||||||||||
|
Strip blanks from the beginning and end of a string. Occurrences of the space character appearing at the beginning and end of the string s are removed.
Definition at line 530 of file StringUtils.hpp. |
|
||||||||||||||||
|
Strip character(s) from the beginning and end of a string const version. Occurrences of the character aCharacter appearing at the beginning and end of the string s are removed.
Definition at line 515 of file StringUtils.hpp. |
|
||||||||||||||||
|
Strip character(s) from the beginning and end of a string. Occurrences of the character aCharacter appearing at the beginning and end of the string s are removed.
Definition at line 499 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning and end of another string cosnt version. Occurrences of the string pString appearing at the beginning and end of the string s are removed.
Definition at line 483 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning and end of another string. Occurrences of the string pString appearing at the beginning and end of the string s are removed.
Definition at line 467 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning and end of another string const version. Occurrences of the string aString appearing at the beginning and end of the string s are removed.
Definition at line 450 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning and end of another string. Occurrences of the string aString appearing at the beginning and end of the string s are removed.
Definition at line 1553 of file StringUtils.hpp. |
|
||||||||||||
|
Removes the first word off string s and returns it. s is modified as a result.
Definition at line 2332 of file StringUtils.hpp. Referenced by expand_args(), expand_list_file(), OceanLoading::initializeSites(), main(), ConfDataItem::parse(), Rinex3ClockHeader::ParseHeaderRecord(), SolarSystem::readASCIIdata(), PlanetEphemeris::readASCIIdata(), SolarSystem::readASCIIheader(), and PlanetEphemeris::readASCIIheader(). |
|
||||||||||||
|
Strip blanks from the beginning of a string const version. Occurrences of the space character appearing at the beginning of the string s are removed.
Definition at line 296 of file StringUtils.hpp. Referenced by MSCStore::addMSC(), gpstk::StringUtils::asString(), expand_filename(), expand_list_file(), MSCStore::findMSC(), TimeTag::getInfo(), FileSpec::init(), OceanLoading::initializeSites(), YumaData::lineParser(), ProblemSatFilter::loadSatelliteProblemFile(), main(), gpstk::StringUtils::numWords(), SolarSystem::readASCIIheader(), PlanetEphemeris::readASCIIheader(), and Position::setToString(). |
|
||||||||||||
|
Strip blanks from the beginning of a string. Occurrences of the space character appearing at the beginning of the string s are removed.
Definition at line 282 of file StringUtils.hpp. |
|
||||||||||||||||
|
Strip character(s) from the beginning of a string const version. Occurrences of the character aCharacter appearing at the beginning of the string s are removed.
Definition at line 267 of file StringUtils.hpp. |
|
||||||||||||||||
|
Strip character(s) from the beginning of a string. Occurrences of the character aCharacter appearing at the beginning of the string s are removed.
Definition at line 251 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning of another string const version. Occurrences of the string pString appearing at the beginning of the string s are removed.
Definition at line 235 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning of another string. Occurrences of the string pString appearing at the beginning of the string s are removed.
Definition at line 219 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning of another string const version. Occurrences of the string aString appearing at the beginning of the string s are removed.
Definition at line 203 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the beginning of another string. Occurrences of the string aString appearing at the beginning of the string s are removed.
Definition at line 1495 of file StringUtils.hpp. |
|
||||||||||||
|
Strip blanks from the end of a string const version. Occurrences of the space character appearing at the end of the string s are removed.
Definition at line 419 of file StringUtils.hpp. Referenced by EOPStore::addIERSFile(), MSCStore::addMSC(), expand_filename(), expand_list_file(), MSCStore::findMSC(), include_path(), OceanLoading::initializeSites(), EOPPrediction::loadFile(), EOPDataStore::loadIERSFile(), EOPDataStore::loadIGSFile(), ProblemSatFilter::loadSatelliteProblemFile(), main(), AntexHeader::ParseHeaderRecord(), CommandLine::ProcessCommandLine(), SolarSystem::readASCIIdata(), PlanetEphemeris::readASCIIdata(), SolarSystem::readASCIIheader(), PlanetEphemeris::readASCIIheader(), RinexObsHeader::reallyGetRecord(), RinexObsData::reallyGetRecord(), RinexNavHeader::reallyGetRecord(), RinexClockHeader::reallyGetRecord(), RinexClockData::reallyGetRecord(), Rinex3ObsHeader::reallyGetRecord(), Rinex3ObsData::reallyGetRecord(), Rinex3NavHeader::reallyGetRecord(), Rinex3ClockHeader::reallyGetRecord(), IonexHeader::reallyGetRecord(), IonexData::reallyGetRecord(), AntexHeader::reallyGetRecord(), AntexData::reallyGetRecord(), gpstk::reallyGetRecordVer2(), Rinex3NavHeader::reallyPutRecord(), gpstk::RegisterExtendedRinexObsType(), and Position::setToString(). |
|
||||||||||||
|
Strip blanks from the end of a string. Occurrences of the space character appearing at the end of the string s are removed.
Definition at line 405 of file StringUtils.hpp. |
|
||||||||||||||||
|
Strip character(s) from the end of a string const version. Occurrences of the character aCharacter appearing at the end of the string s are removed.
Definition at line 390 of file StringUtils.hpp. |
|
||||||||||||||||
|
Strip character(s) from the end of a string. Occurrences of the character aCharacter appearing at the end of the string s are removed.
Definition at line 374 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the end of another string const version. Occurrences of the string pString appearing at the end of the string s are removed.
Definition at line 358 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the end of another string. Occurrences of the string pString appearing at the end of the string s are removed.
Definition at line 342 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the end of another string const version. Occurrences of the string aString appearing at the end of the string s are removed.
Definition at line 326 of file StringUtils.hpp. |
|
||||||||||||||||
|
Remove a string from the end of another string. Occurrences of the string aString appearing at the end of the string s are removed.
Definition at line 1523 of file StringUtils.hpp. Referenced by FFTextStream::formattedGetLine(). |
|
||||||||||||||||||||
|
Get a substring of a string. Try to avoid using this, use the stl string's substr method instead (and leftJustify if needed). Definition at line 2167 of file StringUtils.hpp. |
|
||||||||||||||||||||
|
Converts all of the receiver's characters that are in the first specified string to the corresponding character in the second specified string.
Definition at line 1563 of file StringUtils.hpp. Referenced by main(). |
|
|
Change all lower-case letters in a string to upper-case. Does not modify the original string.
Definition at line 1073 of file StringUtils.hpp. Referenced by ConfDataReader::fetchListValue(), ConfDataReader::fetchListValueAsBoolean(), AntexReader::getAntenna(), AntexReader::getAntennaNoRadome(), ConfDataReader::getValue(), ConfDataReader::getValueAsBoolean(), ConfDataReader::getValueDescription(), ConfDataReader::getVariableDescription(), ConfDataReader::ifExist(), gnssConfData::keepOnly(), gpstk::StringUtils::lowerCase(), ConfDataItem::parse(), SP3Header::reallyGetRecord(), RinexClockHeader::reallyGetRecord(), and Expression::set(). |
|
|
Change all lower-case letters in a string to upper-case. s is modified as a result.
Definition at line 2202 of file StringUtils.hpp. |
|
||||||||||||||||
|
Returns word number wordNum from s (if any).
Definition at line 1138 of file StringUtils.hpp. Referenced by AshtechEPB::decode(), AshtechALB::decode(), PackedNavBits::dump(), AshtechEPB::dump(), expand_list_file(), GDCreturn::GDCreturn(), FICData::getElementLabel(), ObsEphReaderFramework::initialize(), OceanLoading::initializeSites(), EOPPrediction::loadFile(), main(), PackedNavBits::outputPackedBits(), Rinex3ClockHeader::ParseHeaderRecord(), CommandLine::ProcessCommandLine(), SolarSystem::readASCIIheader(), and PlanetEphemeris::readASCIIheader(). |
|
||||||||||||||||||||
|
Returns numWords words starting with firstWord from s (if any).
Definition at line 2286 of file StringUtils.hpp. Referenced by GDCreturn::GDCreturn(), and main(). |
|
|
Convert a hexadecimal string to a decimal string. Given a string containing a hexadecimal number, convert the integer from base 16 to base 10 and return the result. Only the first hex number encountered is changed; the rest of the string is unmodified.
Definition at line 849 of file StringUtils.hpp. Referenced by main(). |
|
|
Modify the string such that the hexadecimal number is now represented as decimal. Only the first hex number encountered is changed; the rest of the string is unmodified.
Definition at line 1876 of file StringUtils.hpp. |
|
|
Only the first hex number encountered is converted.
Definition at line 1851 of file StringUtils.hpp. Referenced by PackedNavBits::rawBitInput(). |
1.3.9.1