stringutil.h File Reference
Detailed Description
Utilities for string manipulation.
- Version:
- Name
- OSB_060808
- Revision
- 1.14
Definition in file stringutil.h.
Go to the source code of this file.
Namespaces
Classes
Functions
- void OSB_LIB::ltrim (std::string &s, const std::string &d=posixWs)
- Remove leading delimiters from a string.
- void OSB_LIB::rtrim (std::string &s, const std::string &d=posixWs)
- Remove trailing delimiters from a string.
- void OSB_LIB::trim (std::string &s, const std::string &d=posixWs)
- Remove leading and trailing delimiters from a string.
- bool OSB_LIB::endsWith (const std::string &str, const std::string &what)
- Compare the end of string.
- std::string OSB_LIB::lstrip (const std::string &from, const std::string &what)
- Conditionally remove the beginning of a string.
- std::string OSB_LIB::rstrip (const std::string &from, const std::string &what)
- Conditionally remove the end of a string.
- void OSB_LIB::escapeChars (std::string &str, const char esc, size_t maxLen)
- Create an Oracle search string.
- bool OSB_LIB::decDigitsOnly (const std::string &s)
- Check if a string consists of decimal digits only.
- bool OSB_LIB::hexDigitsOnly (const std::string &s)
- Check if a string consists of hexadecimal digits only.
- template<typename Cont> void OSB_LIB::tokenize (Cont &dest, const std::string &src, const std::string &del, bool takeEmpty=false)
- Tokenize a string by delimiter characters.
- template<typename Cont> void OSB_LIB::tokenize (Cont &dest, const std::string &src)
- Tokenize a string by POSIX white-space characters.
- template<typename Cont> void OSB_LIB::stringTokenize (Cont &dest, const std::string &src, const std::string &del, bool takeEmpty=true)
- Tokenize a string by a delimiter string.
- template<typename T> bool OSB_LIB::ston (T *dest, const std::string &src, std::string *reminder=0)
- Convert string to number.
- template<typename T> std::string OSB_LIB::mkStr (const T &src)
- General purpose conversion to std::string.
Variables
- const std::string OSB_LIB::posixWs
- White-space characters as defined by POSIX:
" \f\n\r\t\v"
.
Generated on Sat Sep 2 14:06:36 2006 for OSB Library by
1.4.7