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