| 26 | } |
| 27 | |
| 28 | static std::string unicode_cpts_to_utf8(const std::vector<uint32_t> & cps) { |
| 29 | std::string result; |
| 30 | for (size_t i = 0; i < cps.size(); ++i) { |
| 31 | result.append(unicode_cpt_to_utf8(cps[i])); |
| 32 | } |
| 33 | return result; |
| 34 | } |
| 35 | |
| 36 | uint32_t unicode_cpt_from_utf8(const std::string & utf8, size_t & offset) { |
| 37 | assert(offset < utf8.size()); |
nothing calls this directly
no test coverage detected