Go to the documentation of this file.
44 for (const_iterator iter = begin(); iter != end(); ++iter)
66 if ((newStart = find(oldStr, newStart)) != npos)
68 std::string::replace(newStart, oldStr.size(), newStr);
87 while ((newStart = find(oldStr, newStart)) != npos)
89 std::string::replace(newStart, oldStr.size(), newStr);
90 newStart += newStr.size();
108 bool changed =
false;
110 if (character && find(character) != npos)
113 iterator iter2 = begin();
119 string::const_iterator iter1 = iter2;
126 if (prev ==
c &&
c == character)
156 bool changed =
false;
159 if (character && nChar > 1 &&
operator[](nChar-1) == character)
bool removeRepeated(const char)
Remove repeated characters returning true if string changed.
bool removeTrailing(const char)
Remove trailing character returning true if string changed.
string & replaceAll(const string &oldStr, const string &newStr, size_type start=0)
Replace all occurences of sub-string oldStr with newStr.
triSurfaceToAgglom resize(surfacesMesh.size())
A class for handling character strings derived from std::string.
static const char *const typeName
graph_traits< Graph >::vertices_size_type size_type
static const string null
An empty string.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
string & replace(const string &oldStr, const string &newStr, size_type start=0)
Replace first occurence of sub-string oldStr with newStr.
string & expand(const bool allowEmpty=false)
Expand initial tildes and all occurences of environment variables.
const dimensionedScalar c
Speed of light in a vacuum.
size_type count(const char) const
Count and return the number of a given character in the string.
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Inplace expand occurences of variables according to the mapping.