10 #ifndef smtk_common_StringUtil_h
11 #define smtk_common_StringUtil_h
13 #include "smtk/CoreExports.h"
26 static std::string& trim(std::string& s);
27 static std::string& trimLeft(std::string& s);
28 static std::string& trimRight(std::string& s);
30 static std::string& lower(std::string& s);
31 static std::string& upper(std::string& s);
33 static std::vector<std::string>
34 split(
const std::string& s,
const std::string& sep,
bool omitEmpty,
bool trim);
37 static bool endsWith(
const std::string& ss,
const std::string& ending);
44 replaceAll(std::string& source,
const std::string& search,
const std::string& replacement);
58 static std::size_t replaceOne(
61 const std::string& search,
62 const std::string& replacement);
70 static bool toBoolean(
const std::string& s,
bool& value);
83 static bool mixedAlphanumericComparator(
const std::string& aa,
const std::string& bb);
89 #endif // smtk_common_StringUtil_h