49 out.resize(
s.size() + (prefix ? 1 : 0));
56 for (
auto iter =
s.cbegin(); iter !=
s.cend(); ++iter)
62 if (!len && prefix && isdigit(
c))
90 for (len=0; first != last; ++first)
92 const char c = *first;
96 if (!len && prefix && isdigit(
c))
121 word camelCase(a +
b);
122 camelCase[a.size()] = char(toupper(
b[0]));
140 std::ostringstream buf;
144 buf << uintptr_t(ptr);
146 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 expressions::valueTypeCode::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))