From 6ff23ac5097f7d92ac8840c2ba17d1dbf1eb80a5 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 4 Apr 2011 14:59:13 +0000 Subject: UtfString is going really well. It can now parse Utf8, Utf16 (le,be), and Utf32 (le,be). The internal storage seems to be working fine, although we do have a problem with random access, but at least we can tell which half of a surrogate pair we're on, so we can always rapidly determine the entire code point from any utf16 index that we're on. The only optomization that I'm not doing yet is reading in entire 16bit or 32bit words at a time and converting them from their byte order to native. There are a few potential issues with that, so we'll see. I added a couple of testing datafiles and a test program, I'll delete them all just as soon as it's verified to write correctly. --- test.utf16be | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.utf16be (limited to 'test.utf16be') diff --git a/test.utf16be b/test.utf16be new file mode 100644 index 0000000..136ad1a --- /dev/null +++ b/test.utf16be @@ -0,0 +1 @@ +þÿ¥Ëæ)˜Ø=Þ<Ûÿßý$H \ No newline at end of file -- cgit v1.2.3