48 out.resize(
s.size() + (prefix ? 1 : 0));
50 std::string::size_type len = 0;
55 for (
auto iter =
s.cbegin(); iter !=
s.cend(); ++iter)
61 if (!len && prefix && isdigit(c))
84 std::string::size_type len = (last - first) + (prefix ? 1 : 0);
89 for (len=0; first != last; ++first)
91 const char c = *first;
95 if (!len && prefix && isdigit(c))
115 const auto i = find_ext();
148 word camelCase(a +
b);
149 camelCase[a.size()] = char(toupper(
b[0]));
167 std::ostringstream buf;
168 buf <<
"0x" << std::hex << uintptr_t(ptr);
170 return word(buf.str(),
false);
void size(const label n)
Older name for setAddressableSize.
bool valid() const
True if all internal ids are non-negative.
virtual void validate()
Validate the turbulence fields after construction.
word ext() const
Return file name extension (part after last .)
A class for handling words, derived from Foam::string.
static const word null
An empty word.
word ext() const
Return file name extension (part after last .)
static int debug
Debugging.
word lessExt() const
Return word without extension (part before last .)
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))
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.