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 248 word
name(
const void* ptr);
263 return (a.name() <
b.
name());
280 return (a.type() <
b.type());
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
word()=default
Default construct.
word operator()(const T &obj) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
word ext() const
Return file name extension (part after last .)
bool has_ext() const
Return true if it has an extension or simply ends with a '.'.
word & operator=(const word &s)
Copy assignment, no character validation required.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
static int debug
Debugging.
word lessExt() const
Return word without extension (part before last .)
static const word null
An empty word.
void stripInvalid()
Strip invalid characters from this word.
graph_traits< Graph >::vertices_size_type size_type
static bool valid(char c)
Is this character valid for a word?
static word printf(const char *fmt, const PrimitiveType &val)
Use a printf-style formatter for a primitive.
word operator()(const T &obj) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Hashing functor for string and derived string classes.
const word & name() const noexcept
Return const reference to name.
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...
tmp< GeometricField< Type, faPatchField, areaMesh > > operator &(const faMatrix< Type > &, const DimensionedField< Type, areaMesh > &)
const dimensionedScalar c
Speed of light in a vacuum.
word & replace_ext(const word &ending)
Remove extension (if any) and append a new one.
bool removeExt()
Same as remove_ext()
static const char *const typeName
The typeName.
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))
A class for handling character strings derived from std::string.
bool hasExt() const
Same as has_ext()
bool remove_ext()
Remove extension, return true if string changed.