#include <Teuchos_StrUtils.hpp>
Static Public Member Functions | |
| Array< string > | readFile (istream &is, char comment) |
| Read a file, putting each line into a string. | |
| Array< string > | splitIntoLines (const string &input) |
| Split an input string that contains newlines into an array of strings, one for each line. | |
| Array< Array< string > > | tokenizeFile (istream &is, char comment) |
| Tokenize a file into whitespace-delimited tokens. | |
| bool | readLine (istream &is, string &line) |
| Read a single line into a string. | |
| string | before (const string &str, const string &sub) |
| Find the substring before a specified substring. For example, before("abcdefghij", "gh") returns "abcdef". | |
| string | before (const string &str, char sub) |
| Find the substring before a specified character. For example, before("abcdefghij", 'g') returns "abcdef". | |
| string | after (const string &str, const string &sub) |
| Find the substring after a specified substring. For example, before("abcdefghij", "gh") returns "ij". | |
| int | find (const string &str, const string &sub) |
| Find the position at which a substring first occurs. For example, find("abcdefghij", "gh") returns 6. | |
| bool | isWhite (const string &str) |
| Returns true if a string consists entirely of whitespace. | |
| string | fixUnprintableCharacters (const string &str) |
| Convert unprintable non-null characters to whitespace. | |
| bool | isNonWhite (const string &str) |
| Returns true if a string has any non-whitespace. | |
| string | between (const string &str, const string &begin, const string &end, string &front, string &back) |
| Returns the string between two delimiting strings, and returns by reference the strings before and after the delimiters. | |
| string | subString (const string &str, int begin, int end) |
| Returns the substring between two positions. | |
| string | allCaps (const string &str) |
| Converts a string to all upper case. | |
| double | atof (const string &str) |
| Returns the double value of a string. | |
| int | atoi (const string &str) |
| Returns the int value of a string. | |
Definition at line 47 of file Teuchos_StrUtils.hpp.
|
||||||||||||
|
Read a file, putting each line into a string.
Definition at line 36 of file Teuchos_StrUtils.cpp. |
|
|
Split an input string that contains newlines into an array of strings, one for each line.
Definition at line 50 of file Teuchos_StrUtils.cpp. |
|
||||||||||||
|
Tokenize a file into whitespace-delimited tokens.
Definition at line 67 of file Teuchos_StrUtils.cpp. |
|
||||||||||||
|
Read a single line into a string.
Definition at line 87 of file Teuchos_StrUtils.cpp. |
|
||||||||||||
|
Find the substring before a specified substring. For example, before("abcdefghij", "gh") returns "abcdef".
Definition at line 266 of file Teuchos_StrUtils.cpp. |
|
||||||||||||
|
Find the substring before a specified character. For example, before("abcdefghij", 'g') returns "abcdef".
Definition at line 258 of file Teuchos_StrUtils.cpp. |
|
||||||||||||
|
Find the substring after a specified substring. For example, before("abcdefghij", "gh") returns "ij".
Definition at line 278 of file Teuchos_StrUtils.cpp. |
|
||||||||||||
|
Find the position at which a substring first occurs. For example, find("abcdefghij", "gh") returns 6.
Definition at line 292 of file Teuchos_StrUtils.cpp. |
|
|
Returns true if a string consists entirely of whitespace.
Definition at line 299 of file Teuchos_StrUtils.cpp. |
|
|
Convert unprintable non-null characters to whitespace.
Definition at line 312 of file Teuchos_StrUtils.cpp. |
|
|
Returns true if a string has any non-whitespace.
Definition at line 109 of file Teuchos_StrUtils.hpp. |
|
||||||||||||||||||||||||
|
Returns the string between two delimiting strings, and returns by reference the strings before and after the delimiters. For example, between("abcdefghij", "c", "g", front, back) returns "def" and sets front to "ab", back to "hij". Definition at line 329 of file Teuchos_StrUtils.cpp. |
|
||||||||||||||||
|
Returns the substring between two positions. For example, subString("abcdefghij", 2, 5) returns "cde". Definition at line 340 of file Teuchos_StrUtils.cpp. |
|
|
Converts a string to all upper case.
Definition at line 353 of file Teuchos_StrUtils.cpp. |
|
|
Returns the double value of a string.
Definition at line 363 of file Teuchos_StrUtils.cpp. |
|
|
Returns the int value of a string.
Definition at line 368 of file Teuchos_StrUtils.cpp. |
1.3.9.1