]> git.tdb.fi Git - libs/core.git/blobdiff - source/utf8.cpp
Added reset function for StringCodec::Decoder
[libs/core.git] / source / utf8.cpp
index 0217790277a2a1b14112668552cc1675125028d6..f95ad9c27a9ea1b76b86d273432f3c74b21b7fea 100644 (file)
@@ -89,4 +89,9 @@ void Utf8::Decoder::sync()
                throw CodecError("Sync in the middle of multibyte UTF-8 sequence");
 }
 
                throw CodecError("Sync in the middle of multibyte UTF-8 sequence");
 }
 
+void Utf8::Decoder::reset()
+{
+       bytes=0;
+}
+
 } // namespace Msp
 } // namespace Msp