68 Ostream&
operator<<(Ostream&,
const std::string&);
89 static const string null;
99 inline unsigned operator()(
const string&,
unsigned seed = 0)
const;
109 inline string(
const std::string&);
112 inline string(
const string&);
118 inline string(
const char*);
127 inline string(
const char);
142 template<
class String>
143 static inline bool valid(
const string&);
147 template<
class String>
148 static inline bool meta(
const string&,
const char quote=
'\\');
151 template<
class String>
155 template<
class String>
156 static inline String
validate(
const string&);
159 template<
class String>
160 static inline string quotemeta(
const string&,
const char quote=
'\\');
163 inline bool match(
const std::string&)
const;
166 using std::string::replace;
172 const string& oldStr,
173 const string& newStr,
181 const string& oldStr,
182 const string& newStr,
190 const string& oldStr,
191 const string& newStr,
199 const string& oldStr,
200 const string& newStr,
218 string&
expand(
const bool allowEmpty =
false);
224 string remove(
const char)
const;
245 void strip(
const string&);
269 inline string operator()
276 inline string operator()
Misc. hashing functions, mostly from Bob Jenkins.
graph_traits< Graph >::vertices_size_type size_type
A character and a pointer to a character string.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Hashing function class, shared by all the derived classes.
unsigned operator()(const string &, unsigned seed=0) const
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.
friend Ostream & operator<<(Ostream &, const 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.
friend Istream & operator>>(Istream &, string &)
static bool meta(const string &, const char quote='\\')
Does this string have particular meta-characters?
static String validate(const string &)
Return a valid String from the given string.
static string quotemeta(const string &, const char quote='\\')
Return a String with quoted meta-characters from the given string.
string & replace(const string &oldStr, const string &newStr, size_type start=0)
In this string replace first occurrence of sub-string oldStr.
static bool valid(const string &)
Is this string type valid?
static bool stripInvalid(string &)
Strip invalid characters from the given string.
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.
void operator=(const string &)
bool removeRepeated(const char)
Remove repeated character returning true if string changed.
bool match(const std::string &) const
True when strings match literally.
static const char *const typeName
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)