Go to the documentation of this file.
81 static const word null;
96 inline word(
const string&
s,
bool doStrip=
true);
99 inline word(
string&&
s,
bool doStrip=
true);
102 inline word(
const std::string&
s,
bool doStrip=
true);
105 inline word(std::string&&
s,
bool doStrip=
true);
108 inline word(
const char*
s,
bool doStrip=
true);
122 template<
class PrimitiveType>
126 const PrimitiveType& val
132 template<
class PrimitiveType>
135 const std::string& fmt,
136 const PrimitiveType& val
140 inline static bool valid(
char c);
145 static word validate(
const std::string&
s,
const bool prefix=
false);
154 const bool prefix=
false
word lessExt() const
Return word without extension (part before last .)
word & operator=(const word &s)
Copy assignment, no character validation required.
bool hasExt() const
Return true if it has an extension or simply ends with a '.'.
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))
bool removeExt()
Remove extension, returning true if string changed.
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 .)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
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)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Extract name (as a word) from an object, typically using its name() method.
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?
OBJstream os(runTime.globalPath()/outputName)
static const char *const typeName
The typeName.
static int debug
Debugging.
word()=default
Default construct.
Hashing functor for string and derived string classes.
const dimensionedScalar c
Speed of light in a vacuum.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
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.