From 554a2f77f485f55c8c62ae9d854a2198b2c0f98f Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 10 Jan 2015 22:07:04 +0200 Subject: [PATCH] Added handy encoding functions. --- stglibs/common.lib/include/stg/common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index e2eb0d58..ddc69def 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -66,6 +66,8 @@ void Decode21(char * dst, const char * src); void Encode12str(std::string & dst, const std::string & src); void Decode21str(std::string & dst, const std::string & src); +inline std::string Encode12str(const std::string & src) { std::string dst; Encode12str(dst, src); return dst; } +inline std::string Decode21str(const std::string & src) { std::string dst; Decode21str(dst, src); return dst; } int ParseIPString(const char * str, uint32_t * ips, int maxIP); void KOIToWin(const char * s1, char * s2, int l); -- 2.44.2