Determines if the arguments constitute UTF-16 surrogate pair and thus should be combined into a single Unicode code point using CreateCodePointFromUtf16SurrogatePair.
| 2776 | // and thus should be combined into a single Unicode code point |
| 2777 | // using CreateCodePointFromUtf16SurrogatePair. |
| 2778 | inline bool IsUtf16SurrogatePair(wchar_t first, wchar_t second) { |
| 2779 | return sizeof(wchar_t) == 2 && |
| 2780 | (first & 0xFC00) == 0xD800 && (second & 0xFC00) == 0xDC00; |
| 2781 | } |
| 2782 | |
| 2783 | // Creates a Unicode code point from UTF16 surrogate pair. |
| 2784 | inline UInt32 CreateCodePointFromUtf16SurrogatePair(wchar_t first, |