|
static bool | isAbsoluteFileName (const std::string &file) |
| True if the file name file is an absolute file name.
|
|
static std::string | replaceBackslash (const std::string &file) |
| Replace '\' with '/' everywhere in the file name file.
|
|
static std::string | removeWhiteSpace (const std::string &str) |
| Removes space, tab and new line from string.
|
|
static std::string | getDirectoryName (const std::string &path) |
| The directory part of a path name. More...
|
|
static std::string | getRelativeDirectoryName (const std::string &path, std::string dir_name) |
| The directory part of a path name relative to a root directory. More...
|
|
static std::string | getFileName (const std::string &pathAndFileName) |
| Extract the file name (including extension) from a string containing full name including the directory. More...
|
|
static std::string | getFileExtension (const std::string &filename) |
| The extension of a file name. More...
|
|
static std::string | toUpper (const std::string &str) |
| The uppercase of a string. More...
|
|
static std::string | toLower (const std::string &str) |
| The lowercase of a string. More...
|
|
static std::string | quote (const std::string &str) |
| The string str enclosed in single-quotes. More...
|
|
static std::vector< std::string > | words (const std::string &str) |
| Split str into words at space borders.
|
|
static std::pair< bool, double > | toDouble (const std::string &str) |
| Return (true, val) if str parses as a double with value val and (false, 0) otherwise.
|
|
static std::pair< bool, int > | toInt (const std::string &str) |
| Return (true, val) if str parses as a int with value val and (false, 0) otherwise.
|
|
static std::pair< bool, unsigned int > | toUInt (const std::string &str) |
| Return (true, val) if str parses as a int with value val and (false, 0) otherwise.
|
|
static std::pair< bool, long > | toLong (const std::string &str) |
| Return (true, val) if str parses as a int with value val and (false, 0) otherwise.
|
|
static std::pair< bool, unsigned long > | toULong (const std::string &str) |
| Return (true, val) if str parses as a int with value val and (false, 0) otherwise.
|
|
static std::pair< bool, std::vector< double > > | toDoubles (const std::vector< std::string > &words) |
| Return (true, vals) if words parses as a sequence of doubles with values vals and (false, []) otherwise.
|
|
static std::pair< bool, std::vector< int > > | toInts (const std::vector< std::string > &words) |
| Return (true, vals) if words parses as a sequence of ints with values vals and (false, []) otherwise.
|
|
static std::pair< bool, std::vector< unsigned int > > | toUInts (const std::vector< std::string > &words) |
| Return (true, vals) if words parses as a sequence of ints with values vals and (false, []) otherwise.
|
|
static std::pair< bool, std::vector< long > > | toLongs (const std::vector< std::string > &words) |
| Return (true, vals) if words parses as a sequence of ints with values vals and (false, []) otherwise.
|
|
static std::pair< bool, std::vector< unsigned long > > | toULongs (const std::vector< std::string > &words) |
| Return (true, vals) if words parses as a sequence of ints with values vals and (false, []) otherwise.
|
|
static std::string | patternToRegEx (const std::string &pattern) |
| Converts a string pattern with wild card characters * and ? into a regular expression. More...
|
|
static std::string | ranName (const std::string &prefix) |
| creates a name based on a prefix and a random integer between 0xFF and 0xFFFFFF More...
|
|
Collection of string manipulation utilities.