21 static bool beginsWith(
string wholeString,
string beginning);
22 static bool endsWith(
string wholeString,
string ending);
23 static string substrAfter(
string wholeString,
string beginning);
24 static string substrBefore(
string wholeString,
string ending);
25 static string replaceAll(
string wholeString,
char originalChar,
char replacementChar);
26 static size_t replaceAll(
string &wholeString,
string originalSubstring,
string replacementSubstring);
27 static vector<string>
split(
const string &wholeString,
char delimiter);
28 static string join(vector<string> partialStrings,
char delimiter);
29 static string join(vector<string> partialStrings,
string delimiter);
30 static string join(set<string> partialStrings,
string delimiter);
31 static string trim(
string originalString);
40 static string formUniqueIdentifier(set<string> &takenIdentifiers,
const string &preferredIdentifier,
const string &identifierPrefix =
"");
41 static string formUniqueIdentifier(std::function<
bool(
const string &)> isIdentifierAvailable,
const string &preferredIdentifier,
const string &identifierPrefix =
"");
46 static string convertToCamelCase(
const string &originalString,
bool capitalizeFirstLetter,
bool forceFirstLetterToLower,
bool forceInterveningLettersToLower,
47 bool allowSeparatorDots =
false);
55 static inline long hash(
const string &s)
57 return collate.hash(s.data(), s.data() + s.length());