]> git.tdb.fi Git - libs/core.git/blobdiff - source/stringcodec/codec.h
Avoid using an exception in a non-error situation
[libs/core.git] / source / stringcodec / codec.h
index eec1e4bddb092a80a03574aa6207c30df53150ea..5acbe7b0d1dc34b1d7285c6b96a63665b1ffde2f 100644 (file)
@@ -3,14 +3,11 @@
 
 #include <string>
 #include <msp/core/except.h>
+#include "ustring.h"
 
 namespace Msp {
 namespace StringCodec {
 
-typedef int unichar;
-
-typedef std::basic_string<unichar> ustring;
-
 enum ErrorMode
 {
        THROW_ON_ERROR,
@@ -121,7 +118,7 @@ public:
                
                THROW_ON_ERROR: throws CodecError(msg)
                IGNORE_ERRORS: returns -1
-               TRANSLITERATE: return 0xFFFE */
+               TRANSLITERATE: return 0xFFFD */
                unichar error(const std::string &msg);
        };