33template<
class PrimitiveType>
37 const PrimitiveType& val
46template<
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 "
151 << this->c_str() << std::endl;
156 <<
" For debug level (= " << debug
157 <<
") > 1 this is considered fatal" << std::endl;
182 assign(std::move(
s));
198 assign(std::move(
s));
214 assign(std::move(
s));
graph_traits< Graph >::vertices_size_type size_type
bool valid() const
True if all internal ids are non-negative.
A class for handling character strings derived from std::string.
static std::string::size_type string_printf(std::string &output, const char *fmt, const PrimitiveType &val)
A printf-style formatter for a primitive.
A class for handling words, derived from Foam::string.
static word printf(const char *fmt, const PrimitiveType &val)
Use a printf-style formatter for a primitive.
word()=default
Default construct.
word & operator=(const word &s)
Copy assignment, no character validation required.
void stripInvalid()
Strip invalid characters from this word.
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)
static Ostream & output(Ostream &os, const IntRange< T > &range)