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