]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/common.h
Added ToLower/ToUpper.
[stg.git] / stglibs / common.lib / include / stg / common.h
index 0791f0938e9e89c327ba255f07f2b1f97f9a358d..e2eb0d58b3ad9f70abbd8d065df48958dbb85c62 100644 (file)
@@ -97,6 +97,9 @@ std::string &   TrimL(std::string & val);
 std::string &   TrimR(std::string & val);
 std::string &   Trim(std::string & val);
 
+std::string ToLower(std::string value);
+std::string ToUpper(std::string value);
+
 template <typename C, typename F>
 C Split(const std::string & value, char delim, F conv)
 {
@@ -142,6 +145,8 @@ bool WaitPackets(int sd);
 bool ReadAll(int sd, void * dest, size_t size);
 bool WriteAll(int sd, const void * source, size_t size);
 
+std::string ToPrintable(const std::string & src);
+
 //-----------------------------------------------------------------------------
 int str2x(const std::string & str, int32_t & x);
 int str2x(const std::string & str, uint32_t & x);