From abbf45c1da7f3e3a542e6c6339a1bab31283f22e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 4 Apr 2011 07:22:10 +0000 Subject: I made some awesome progress on the UtfString system, it stores in native utf16 encoding to make things easier (little endian in our case). It can currently read utf8 and utf16be, but not BOM. It will give you full unicode code points instead of the raw utf16 values, which is pretty slick. --- src/tests/utf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tests/utf.cpp') diff --git a/src/tests/utf.cpp b/src/tests/utf.cpp index 59d49c6..9e075e2 100644 --- a/src/tests/utf.cpp +++ b/src/tests/utf.cpp @@ -16,7 +16,8 @@ int main( int argc, char *argv[] ) int iAmnt = fIn.read( buf, 4096 ); sUtf8.append( buf, iAmnt ); } - Bu::UtfString::debugUtf8( sUtf8 ); + Bu::UtfString us( sUtf8, Bu::UtfString::Utf16 ); + us.debug(); } } -- cgit v1.2.3