* Decode an UTF-16 character. * @param c Pointer to one or two UTF-16 code points. * @return Decoded Unicode character. */
| 94 | * @return Decoded Unicode character. |
| 95 | */ |
| 96 | inline char32_t Utf16DecodeChar(const uint16_t *c) |
| 97 | { |
| 98 | if (Utf16IsLeadSurrogate(c[0])) { |
| 99 | return Utf16DecodeSurrogate(c[0], c[1]); |
| 100 | } else { |
| 101 | return *c; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Is the given character a text direction character. |
no test coverage detected