A class for handling words, derived from string. More...
#include <OpenFOAM/word.H>
A class for handling words, derived from string.
A word is a string of characters containing no whitespace and may be constructed from a string by removing whitespace. Words are delimited by whitespace.
Definition at line 61 of file word.H.
Public Member Functions | |
word () | |
Construct null.
| |
word (const word &) | |
Construct as copy.
| |
word (const char *, const bool doStripInvalid=true) | |
Construct as copy of character array.
| |
word (const char *, const size_type, const bool doStripInvalid) | |
Construct as copy with a maximum number of characters.
| |
word (const string &, const bool doStripInvalid=true) | |
Construct as copy of string.
| |
word (const std::string &, const bool doStripInvalid=true) | |
Construct as copy of std::string.
| |
word (Istream &) | |
Construct from Istream.
| |
const word & | operator= (const word &) |
const word & | operator= (const string &) |
const word & | operator= (const std::string &) |
const word & | operator= (const char *) |
Static Public Member Functions | |
static bool | valid (char) |
Is this character valid for a word.
| |
Static Public Attributes | |
static const char *const | typeName = "word" |
static int | debug |
static const word | null |
Friends | |
word | operator& (const word &, const word &) |
Istream & | operator>> (Istream &, word &) |
Ostream & | operator<< (Ostream &, const word &) |
word | ( | const char * | s, |
const bool | doStripInvalid = true
|
||
) | [inline]
|
word | ( | const char * | s, |
const size_type | n, | ||
const bool | doStripInvalid | ||
) | [inline]
|
word | ( | const std::string & | s, |
const bool | doStripInvalid = true
|
||
) | [inline]
|
bool valid | ( | char | c ) | [inline, static]
|
Is this character valid for a word.
Definition at line 117 of file wordI.H.
References Foam::isspace().
Referenced by ISstream::read().
const Foam::word & operator= | ( | const word & | q ) | [inline]
|
Reimplemented in keyType, and wordRe.
Definition at line 134 of file wordI.H.
Referenced by wordRe::operator=(), and keyType::operator=().
const Foam::word & operator= | ( | const string & | q ) | [inline]
|
const Foam::word & operator= | ( | const std::string & | q ) | [inline]
|
const Foam::word & operator= | ( | const char * | q ) | [inline]
|
const char *const typeName = "word" [static]
|
int debug [static]
|
const Foam::word null [static]
|
Reimplemented from string.
Definition at line 77 of file word.H.
Referenced by fileName::ext(), cellTable::findIndex(), boundaryRegion::findIndex(), Time::findInstancePath(), token::wordToken(), surfaceSlipDisplacementPointPatchVectorField::write(), surfaceDisplacementPointPatchVectorField::write(), and Foam::writeMeshObject().