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);
131 template<
class String>
132 static inline bool valid(
const string&);
136 template<
class String>
137 static inline bool meta(
const string&,
const char quote=
'\\');
140 template<
class String>
144 template<
class String>
145 static inline String
validate(
const string&);
148 template<
class String>
149 static inline string quotemeta(
const string&,
const char quote=
'\\');
152 inline bool match(
const std::string&)
const;
155 using std::string::replace;
161 const string& oldStr,
162 const string& newStr,
170 const string& oldStr,
171 const string& newStr,
189 string&
expand(
const bool allowEmpty =
false);
207 inline string operator()
214 inline string operator()
bool removeRepeated(const char)
Remove repeated characters returning true if string changed.
static bool meta(const string &, const char quote='\\')
Does this string have particular meta-characters?
Hashing function class, shared by all the derived classes.
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 occurences of sub-string oldStr with newStr.
unsigned operator()(const string &, unsigned seed=0) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static String validate(const string &)
Return a valid String from the given string.
bool match(const std::string &) const
True when strings match literally.
friend Ostream & operator<<(Ostream &, const string &)
A character and a pointer to a character string.
static string quotemeta(const string &, const char quote='\\')
Return a String with quoted meta-characters from the given string.
static const char *const typeName
friend Istream & operator>>(Istream &, string &)
Istream & operator>>(Istream &, directionInfo &)
graph_traits< Graph >::vertices_size_type size_type
static const string null
An empty string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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.
Misc. hashing functions, mostly from Bob Jenkins.
Ostream & operator<<(Ostream &, const ensightPart &)
static bool valid(const string &)
Is this string type valid?
static bool stripInvalid(string &)
Strip invalid characters from the given string.
bool removeTrailing(const char)
Remove trailing character returning true if string changed.
A class for handling character strings derived from std::string.