Changed unchecked::next to look more like utf8::next

git-svn-id: http://svn.code.sf.net/p/utfcpp/code@25 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
ntrifunovic 2006-07-26 17:41:09 +00:00
parent 1e17f800fe
commit 5a0f1d3fc4

View file

@ -423,7 +423,7 @@ namespace internal
} }
else if (((*it) >> 3) == 0x1e) { else if (((*it) >> 3) == 0x1e) {
++it; ++it;
cp = ((cp << 18) & 0x1fffff) + (internal::mask8(*it) << 12) & 0x3ffff; cp = ((cp << 18) & 0x1fffff) + ((internal::mask8(*it) << 12) & 0x3ffff);
++it; ++it;
cp += (internal::mask8(*it) << 6) & 0xfff; cp += (internal::mask8(*it) << 6) & 0xfff;
++it; ++it;