| 48 | } |
| 49 | |
| 50 | void EncodeToUtf16LE(std::ostream& stream, int ch) { |
| 51 | if (!SplitUtf16HighChar(stream, &EncodeToUtf16LE, ch)) { |
| 52 | stream << Byte(ch & 0xFF) << Byte(ch >> 8); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | void EncodeToUtf16BE(std::ostream& stream, int ch) { |
| 57 | if (!SplitUtf16HighChar(stream, &EncodeToUtf16BE, ch)) { |
nothing calls this directly
no test coverage detected