| 315 | } |
| 316 | |
| 317 | static std::vector<uint16_t> codepoints_to_utf16(const std::vector<uint32_t> & cps) { |
| 318 | std::vector<uint16_t> result; |
| 319 | for (size_t i = 0; i < cps.size(); ++i) { |
| 320 | auto temp = codepoint_to_utf16(cps[i]); |
| 321 | result.insert(result.end(), temp.begin(), temp.end()); |
| 322 | } |
| 323 | return result; |
| 324 | } |
| 325 | |
| 326 | static uint32_t codepoint_from_utf16(const std::vector<uint16_t> & utf16, size_t & offset) { |
| 327 | assert(offset < utf16.size()); |
nothing calls this directly
no test coverage detected