| 219 | } |
| 220 | |
| 221 | std::pair<uint16_t, uint16_t> EncodeUTF16SurrogatePair(int codePoint) { |
| 222 | const uint32_t leadOffset = 0xD800 - (0x10000 >> 10); |
| 223 | |
| 224 | return { |
| 225 | leadOffset | (codePoint >> 10), |
| 226 | 0xDC00 | (codePoint & 0x3FF), |
| 227 | }; |
| 228 | } |
| 229 | |
| 230 | void WriteDoubleQuoteEscapeSequence(ostream_wrapper& out, int codePoint, StringEscaping::value stringEscapingStyle) { |
| 231 | static const char hexDigits[] = "0123456789abcdef"; |
no outgoing calls
no test coverage detected