|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Extension of the STL string class with some parsing methods. More...
#include <FFaStringExt.H>


Public Member Functions | |
| FFaString (const std::string &s) | |
| Copy constructor. More... | |
| bool | hasSubString (const char *) const |
| Checks if the string contains the specified substring. More... | |
| int | getIntAfter (const char *) const |
| Parses an integer after the specified substring. More... | |
| double | getDoubleAfter (const char *) const |
| Parses a double after the specified substring. More... | |
| int | getIntsAfter (const char *, const int, int *) const |
| Parses a list of integers after the specified substring. More... | |
| int | getDoublesAfter (const char *, const int, double *) const |
| Parses a list of doubles after the specified substring. More... | |
| std::string | getTextAfter (const char *, const char *end=NULL) const |
| Parses a text string after the specified substring. More... | |
Private Member Functions | |
| size_t | getPosAfterString (const char *) const |
| Returns the position of the specified substring. More... | |
Extension of the STL string class with some parsing methods.
This is mainly used for description-field command parsing.
|
inline |
Copy constructor.
| double FFaString::getDoubleAfter | ( | const char * | s | ) | const |
Parses a double after the specified substring.
| int FFaString::getDoublesAfter | ( | const char * | s, |
| const int | n, | ||
| double * | v | ||
| ) | const |
Parses a list of doubles after the specified substring.
| int FFaString::getIntAfter | ( | const char * | s | ) | const |
Parses an integer after the specified substring.
| int FFaString::getIntsAfter | ( | const char * | s, |
| const int | n, | ||
| int * | v | ||
| ) | const |
Parses a list of integers after the specified substring.
|
private |
Returns the position of the specified substring.
| std::string FFaString::getTextAfter | ( | const char * | s, |
| const char * | end = NULL |
||
| ) | const |
Parses a text string after the specified substring.
| bool FFaString::hasSubString | ( | const char * | s | ) | const |
Checks if the string contains the specified substring.