* Convert an UTF-16 surrogate pair to the corresponding Unicode character. * @param lead Lead surrogate code point. * @param trail Trail surrogate code point. * @return Decoded Unicode character. */
| 84 | * @return Decoded Unicode character. |
| 85 | */ |
| 86 | inline char32_t Utf16DecodeSurrogate(uint lead, uint trail) |
| 87 | { |
| 88 | return 0x10000 + (((lead - 0xD800) << 10) | (trail - 0xDC00)); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Decode an UTF-16 character. |
no outgoing calls
no test coverage detected