Go to the documentation of this file.
33 template<
class PrimitiveType>
37 const PrimitiveType& val
41 string_printf(
output, fmt, val);
46 template<
class PrimitiveType>
49 const std::string& fmt,
50 const PrimitiveType& val
54 string_printf(
output, fmt, val);
147 if (
debug && string::stripInvalid<word>(*
this))
150 <<
"word::stripInvalid() called for word "
156 <<
" For debug level (= " <<
debug
157 <<
") > 1 this is considered fatal" <<
std::endl;
int debug
Static debugging option.
word & operator=(const word &s)
Copy assignment, no character validation required.
static Ostream & output(Ostream &os, const IntRange< T > &range)
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 isspace(char c) noexcept
Test for whitespace (C-locale)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling character strings derived from std::string.
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?
errorManipArg< error, int > exit(error &err, const int errNo=1)
word()=default
Default construct.
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.
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
Populate a field as the result of a unary operation on an input.