Provides std::string manipulation utilities that are not provided in the standard C++ std::string class.
More...
|
static Array< std::string > | readFile (std::istream &is, char comment) |
| Read a file, putting each line into a std::string. More...
|
|
static Array< std::string > | splitIntoLines (const std::string &input) |
| Split an input std::string that contains newlines into an array of strings, one for each line. More...
|
|
static Array< Array
< std::string > > | tokenizeFile (std::istream &is, char comment) |
| Tokenize a file into whitespace-delimited tokens. More...
|
|
static bool | readLine (std::istream &is, std::string &line) |
| Read a single line into a std::string. More...
|
|
static Array< std::string > | stringTokenizer (const std::string &str) |
|
static Array< std::string > | getTokensPlusWhitespace (const std::string &str) |
|
static std::string | reassembleFromTokens (const Array< std::string > &tokens, int iStart=0) |
|
static void | splitList (const std::string &bigstring, Array< std::string > &elements) |
|
static int | findNextWhitespace (const std::string &str, int offset) |
|
static int | findNextNonWhitespace (const std::string &str, int offset) |
|
static std::string | varSubstitute (const std::string &rawLine, const std::string &varName, const std::string &varValue) |
|
static std::string | varTableSubstitute (const std::string &rawLine, const Array< std::string > &varNames, const Array< std::string > &varValues) |
|
static std::string | before (const std::string &str, const std::string &sub) |
| Find the substring before a specified substring. For example, before("abcdefghij", "gh") returns "abcdef". More...
|
|
static std::string | before (const std::string &str, char sub) |
| Find the substring before a specified character. For example, before("abcdefghij", 'g') returns "abcdef". More...
|
|
static std::string | after (const std::string &str, const std::string &sub) |
| Find the substring after a specified substring. For example, before("abcdefghij", "gh") returns "ij". More...
|
|
static int | find (const std::string &str, const std::string &sub) |
| Find the position at which a substring first occurs. For example, find("abcdefghij", "gh") returns 6. More...
|
|
static bool | isWhite (const std::string &str) |
| Returns true if a std::string consists entirely of whitespace. More...
|
|
static std::string | fixUnprintableCharacters (const std::string &str) |
| Convert unprintable non-null characters to whitespace. More...
|
|
static bool | isNonWhite (const std::string &str) |
| Returns true if a std::string has any non-whitespace. More...
|
|
static std::string | between (const std::string &str, const std::string &begin, const std::string &end, std::string &front, std::string &back) |
| Returns the std::string between two delimiting strings, and returns by reference the strings before and after the delimiters. More...
|
|
static std::string | subString (const std::string &str, int begin, int end) |
| Returns the substring between two positions. More...
|
|
static std::string | allCaps (const std::string &str) |
| Converts a std::string to all upper case. More...
|
|
static double | atof (const std::string &str) |
| Returns the double value of a std::string. More...
|
|
static int | atoi (const std::string &str) |
| Returns the int value of a std::string. More...
|
|
static std::ostream & | printLines (std::ostream &os, const std::string &linePrefix, const std::string &lines) |
| Print lines with prefix first. More...
|
|
static std::string | removeAllSpaces (std::string stringToClean) |
| Removes all the spaces in a string. More...
|
|
Provides std::string manipulation utilities that are not provided in the standard C++ std::string class.
Definition at line 29 of file Teuchos_StrUtils.hpp.