Enumerations | |
| enum | KeywordCase { CASE_UNCHANGED, CASE_LOWER, CASE_UPPER, CASE_CAPITALIZE } |
Functions | |
| string | change_case (const string &s, const KeywordCase kcase) throw () |
| string | trimRight (const string &value) |
| string | getParantheseVal (const string &s) |
| vector< string > | splitString (const string &s, unsigned char delim) |
| template<class T > | |
| bool | str2num (T &val, const std::string &s, std::ios_base &(*f)(std::ios_base &)) |
| string StringTools::change_case | ( | const string & | s, | |
| const KeywordCase | kcase = CASE_LOWER | |||
| ) | throw () |
Change character case of strings
| s | input string | |
| kcase | case modification indicator |
References CASE_CAPITALIZE, CASE_LOWER, CASE_UNCHANGED, and CASE_UPPER.
Referenced by CmdLineOptions::CmdLineOptions(), ConfigurationReader::ConfigurationReader(), highlight::CodeGenerator::encodingDefined(), CmdLineOptions::getIndentScheme(), and CmdLineOptions::omitEncoding().
| string StringTools::getParantheseVal | ( | const string & | s | ) |
Parse data within parantheses
| s | String, containing a opening and a closing paranthesis |
Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().
| vector< string > StringTools::splitString | ( | const string & | s, | |
| unsigned char | delim | |||
| ) |
Split string and return items separated by a delimiter
| s | string containing tokens | |
| delim | Token delimiter |
| bool StringTools::str2num | ( | T & | val, | |
| const std::string & | s, | |||
| std::ios_base &(*)(std::ios_base &) | f | |||
| ) | [inline] |
Convert string to a numeric value of the given type
| val | variable of specified type which will contain the numeric value | |
| s | string containing a number | |
| f | format specifier function (IO manipulator) |
| string StringTools::trimRight | ( | const string & | value | ) |
Trim string (remove whitespace)
| value | String |
Referenced by ConfigurationReader::ConfigurationReader().
1.5.7.1