68 Ostream&
operator<<(Ostream&,
const std::string&);
87 static const string null;
97 inline unsigned operator()(
const string&,
unsigned seed = 0)
const;
107 inline string(
const std::string&);
110 inline string(
const char*);
116 inline string(
const char);
128 template<
class String>
129 static inline bool valid(
const string&);
133 template<
class String>
134 static inline bool meta(
const string&,
const char quote=
'\\');
137 template<
class String>
141 template<
class String>
142 static inline String
validate(
const string&);
145 template<
class String>
146 static inline string quotemeta(
const string&,
const char quote=
'\\');
149 inline bool match(
const std::string&)
const;
152 using std::string::replace;
158 const string& oldStr,
159 const string& newStr,
167 const string& oldStr,
168 const string& newStr,
186 string&
expand(
const bool allowEmpty =
false);
204 inline string operator()
211 inline string operator()
string & expand(const bool allowEmpty=false)
Expand initial tildes and all occurences of environment variables.
static String validate(const string &)
Return a valid String from the given string.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Hashing function class, shared by all the derived classes.
A class for handling character strings derived from std::string.
bool removeRepeated(const char)
Remove repeated characters returning true if string changed.
A character and a pointer to a character string.
Ostream & operator<<(Ostream &, const edgeMesh &)
static bool meta(const string &, const char quote='\\')
Does this string have particular meta-characters?
string & replaceAll(const string &oldStr, const string &newStr, size_type start=0)
Replace all occurences of sub-string oldStr with newStr.
static const string null
An empty string.
graph_traits< Graph >::vertices_size_type size_type
unsigned operator()(const string &, unsigned seed=0) const
size_type count(const char) const
Count and return the number of a given character in the string.
bool removeTrailing(const char)
Remove trailing character returning true if string changed.
static const char *const typeName
bool match(const std::string &) const
True when strings match literally.
Misc. hashing functions, mostly from Bob Jenkins.
friend Istream & operator>>(Istream &, string &)
Istream & operator>>(Istream &, edgeMesh &)
string & replace(const string &oldStr, const string &newStr, size_type start=0)
Replace first occurence of sub-string oldStr with newStr.
friend Ostream & operator<<(Ostream &, const string &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static string quotemeta(const string &, const char quote='\\')
Return a String with quoted meta-characters from the given string.
static bool valid(const string &)
Is this string type valid?
static bool stripInvalid(string &)
Strip invalid characters from the given string.