48 out.resize(
s.size() + (prefix ? 1 : 0));
55 for (
auto iter =
s.cbegin(); iter !=
s.cend(); ++iter)
61 if (!len && prefix && isdigit(
c))
89 for (len=0; first != last; ++first)
91 const char c = *first;
95 if (!len && prefix && isdigit(
c))
120 word camelCase(a +
b);
121 camelCase[a.size()] = char(toupper(
b[0]));
139 std::ostringstream buf;
143 buf << uintptr_t(ptr);
145 return word(buf.str(),
false);
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
IOstream & hex(IOstream &io)
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
A class for handling words, derived from Foam::string.
static int debug
Debugging.
static const word null
An empty word.
graph_traits< Graph >::vertices_size_type size_type
static bool valid(char c)
Is this character valid for a word?
tmp< GeometricField< Type, faPatchField, areaMesh > > operator &(const faMatrix< Type > &, const DimensionedField< Type, areaMesh > &)
const dimensionedScalar c
Speed of light in a vacuum.
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))