Commit 6400e88a authored by Oleg Korshul's avatar Oleg Korshul

utf16->unicode bug

parent f275c0a4
......@@ -171,6 +171,7 @@ namespace NSStringExt
if (nTrailing >= 0xDC00 && nTrailing <= 0xDFFF)
{
*pCur = (wchar_t)(((nLeading & 0x03FF) << 10) | (nTrailing & 0x03FF));
*pCur += 0x10000;
pCur++;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment