]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/common.cpp
Fixed error processing.
[stg.git] / stglibs / common.lib / common.cpp
index 15547b49122e4fa0ade9d6d98ab000e1c56cda14..7ba78e1d8b311e149ea0b705ee3b0102a3af423f 100644 (file)
@@ -840,6 +840,12 @@ std::string & Trim(std::string & val)
 return TrimR(TrimL(val));
 }
 //---------------------------------------------------------------------------
+std::string Trim(const std::string & val)
+{
+std::string res(val);
+return TrimR(TrimL(res));
+}
+//---------------------------------------------------------------------------
 std::string ToLower(const std::string & value)
 {
     std::string res;