Go to the documentation of this file.
56 Ostream&
operator<<(Ostream& os,
const word& w);
78 static const word null;
93 inline word(
const string&
s,
bool doStrip=
true);
96 inline word(
string&&
s,
bool doStrip=
true);
99 inline word(
const std::string&
s,
bool doStrip=
true);
102 inline word(std::string&&
s,
bool doStrip=
true);
105 inline word(
const char*
s,
bool doStrip=
true);
119 template<
class PrimitiveType>
123 const PrimitiveType& val
129 template<
class PrimitiveType>
132 const std::string& fmt,
133 const PrimitiveType& val
137 inline static bool valid(
char c);
142 static word validate(
const std::string&
s,
const bool prefix=
false);
151 const bool prefix=
false
173 inline bool hasExt()
const;
word lessExt() const
Return word without extension (part before last .)
word & operator=(const word &s)
Copy assignment, no character validation required.
word operator()(const T &obj) const
A class for handling words, derived from Foam::string.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
Istream & operator>>(Istream &, directionInfo &)
A class for handling character strings derived from std::string.
word ext() const
Return file name extension (part after last .)
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
bool hasExt() const
Return true if it has an extension or simply ends with a '.'.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Extract name (as a word) from an object, typically using its name() method.
bool removeExt()
Remove extension, returning true if string changed.
void stripInvalid()
Strip invalid characters from this word.
graph_traits< Graph >::vertices_size_type size_type
word operator()(const T &obj) const
static bool valid(char c)
Is this character valid for a word?
static const char *const typeName
The typeName.
static int debug
Debugging.
word()=default
Construct null.
const dimensionedScalar c
Speed of light in a vacuum.
static word printf(const char *fmt, const PrimitiveType &val)
Use a printf-style formatter for a primitive.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Extract type (as a word) from an object, typically using its type() method.