mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-15 13:48:57 +08:00
0025608: TKernel, NCollection_UtfIterator - fix iteration of surrogate pairs in UTF-16
This commit is contained in:
@@ -114,7 +114,7 @@ void NCollection_UtfIterator<Type>::readUTF16()
|
||||
if (aChar >= UTF16_SURROGATE_HIGH_START
|
||||
&& aChar <= UTF16_SURROGATE_HIGH_END)
|
||||
{
|
||||
Standard_Utf32Char aChar2 = *myPosition;
|
||||
const Standard_Utf32Char aChar2 = *myPosNext;
|
||||
// complete the surrogate pair
|
||||
if (aChar2 >= UTF16_SURROGATE_LOW_START
|
||||
&& aChar2 <= UTF16_SURROGATE_LOW_END)
|
||||
|
||||
Reference in New Issue
Block a user