]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/common.h
Simplified ToLower/ToUpper functions.
[stg.git] / stglibs / common.lib / include / stg / common.h
index 6af1309fab77bbe101c80c36831fd38187230d43..90bd639d46dd56f8d71c445ec262a1dbba42a72c 100644 (file)
@@ -99,8 +99,8 @@ std::string &   TrimR(std::string & val);
 std::string &   Trim(std::string & val);
 std::string     Trim(const std::string & val);
 
-std::string     ToLower(const std::string & value);
-std::string     ToUpper(const std::string & value);
+std::string     ToLower(std::string value);
+std::string     ToUpper(std::string value);
 
 template <typename C, typename F>
 inline
@@ -154,6 +154,11 @@ int ParseYesNo(const std::string & str, bool * val);
 
 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);