mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
0025608: TKernel, NCollection_UtfIterator - fix iteration of surrogate pairs in UTF-16
This commit is contained in:
parent
2283570591
commit
656ec77a10
@ -114,7 +114,7 @@ void NCollection_UtfIterator<Type>::readUTF16()
|
|||||||
if (aChar >= UTF16_SURROGATE_HIGH_START
|
if (aChar >= UTF16_SURROGATE_HIGH_START
|
||||||
&& aChar <= UTF16_SURROGATE_HIGH_END)
|
&& aChar <= UTF16_SURROGATE_HIGH_END)
|
||||||
{
|
{
|
||||||
Standard_Utf32Char aChar2 = *myPosition;
|
const Standard_Utf32Char aChar2 = *myPosNext;
|
||||||
// complete the surrogate pair
|
// complete the surrogate pair
|
||||||
if (aChar2 >= UTF16_SURROGATE_LOW_START
|
if (aChar2 >= UTF16_SURROGATE_LOW_START
|
||||||
&& aChar2 <= UTF16_SURROGATE_LOW_END)
|
&& aChar2 <= UTF16_SURROGATE_LOW_END)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user