]> git.tdb.fi Git - libs/core.git/blobdiff - source/codec.h
Add convenience functions to Encoder and Decoder to process a string and return the...
[libs/core.git] / source / codec.h
index d3737400803b700a8dd325cf5283e9adb660422d..e8b172eb5af068004d6ad051642ced663a2b9608 100644 (file)
@@ -79,6 +79,8 @@ public:
                */
                virtual void encode(const ustring &str, std::string &buf);
 
+               std::string encode(const ustring &);
+
                /**
                Procuces a sequence of bytes that will bring the encoder back to the
                initial state.
@@ -143,6 +145,8 @@ public:
                */
                virtual void decode(const std::string &str, ustring &buf);
 
+               ustring decode(const std::string &);
+
                /**
                Resets the decoder to the initial state.
                */