41 std::
string(str.begin(), str.end())
51 for (const_iterator iter = begin(); iter != end(); ++iter)
72 if ((newStart = find(oldStr, newStart)) != npos)
74 std::string::replace(newStart, oldStr.size(), newStr);
103 while ((newStart = find(oldStr, newStart)) != npos)
105 std::string::replace(newStart, oldStr.size(), newStr);
106 newStart += newStr.size();
116 const string& oldStr,
117 const string& newStr,
134 bool changed =
false;
137 iterator iter2 = begin();
141 string::const_iterator iter1 = iter2;
177 bool changed =
false;
180 iterator iter2 = begin();
182 char cPrev = operator[](0) + 1;
186 string::const_iterator iter1 = iter2;
193 if (
c == cPrev &&
c == character)
221 bool changed =
false;
224 if (
n >= 1 &&
operator[](
n - 1) == character)
236 string result(*
this);
244 bool changed =
false;
247 if (
n >= str.size() &&
operator()(
n - nStr, nStr) == str)
259 string result(*
this);
269 while (i0 < size() && str.
count(
operator[](i0)) > 0)
276 while (i1 > i0 && str.
count(
operator[](i1 - 1)) > 0)
286 operator[](i) = operator[](i + i0);
291 if (i0 != 0 || i1 != size())
308 while (level > 0 && i < size())
310 if (
operator[](i) ==
operator[](i0)) ++level;
311 if (
operator[](i) ==
c) --level;
316 return level == 0 ? i - 1 : string::npos;
graph_traits< Graph >::vertices_size_type size_type
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A class for handling character strings derived from std::string.
string & replaceAll(const string &oldStr, const string &newStr, size_type start=0)
In this string replace all occurrences of sub-string oldStr.
size_type count(const char) const
Count and return the number of a given character in the string.
static const string null
An empty string.
bool removeTrailing(const char)
Remove trailing character returning true if string changed.
size_type findClosing(const char, const size_type) const
Find the closing character. Brackets counting algorithm. The.
void strip(const string &)
Strip characters from the start and end of the string.
string & replace(const string &oldStr, const string &newStr, size_type start=0)
In this string replace first occurrence of sub-string oldStr.
string & expand(const bool allowEmpty=false)
Expand initial tildes and all occurrences of environment variables.
bool remove(const char)
Remove all occurrences of character returning true if string changed.
bool removeRepeated(const char)
Remove repeated character returning true if string changed.
static const char *const typeName
const dimensionedScalar c
Speed of light in a vacuum.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
string & inplaceExpandEnvVar(string &, const bool allowEmpty=false)
Expand all occurrences of environment variables and paths.
triSurfaceToAgglom resize(surfacesMesh.size())