16 #pragma clang diagnostic push
17 #pragma clang diagnostic ignored "-Wunused-function"
18 bool CaseInsensitiveStringEquals(
const std::string& a,
const std::string& b);
20 std::string ToLower(
const std::string& str);
22 size_t Split(
const std::string& s,
char delim, std::vector<std::string>& out_elems);
24 std::string TrimRight(
const std::string& str,
const std::string& charsToTrim);
26 bool TryParseLatLong(
const std::string& latString,
const std::string& lonString,
Eegeo::Space::LatLong& out_LatLon);
28 bool TryParseDouble(
const std::string&
string,
double& out_double);
30 bool TryParseInt(
const std::string&
string,
int& out_int);
32 void SearchReplace(std::string& in_out_originalString,
const std::string& searchTerm,
const std::string& replaceTerm);
34 bool Contains(std::string& originalString,
const std::string& searchTerm);
36 void PadRight(std::stringstream& stream,
const std::string&
string,
int lineLengthToPadTo);
38 void PadLeftRight(std::stringstream& stream,
const std::string&
string,
int leftPadding,
int lineLengthToPadTo);
40 std::string FloatingPointToString(
float v,
int decimalPlaces);
42 std::string FloatingPointToString(
double v,
int decimalPlaces);
43 #pragma clang diagnostic pop
45 std::string Join(
const std::vector<std::string>& tokens,
const std::string separator);
48 std::string Join(
const std::vector<T>& values,
const std::string& seperator)
52 for (
typename std::vector<T>::const_iterator iter = values.begin(); iter != values.end(); ++iter)
55 if (iter != values.end() - 1)
64 std::string CamelCaseToSnakeCase(
const std::string& camelCase);