| 1018 | } |
| 1019 | |
| 1020 | unicode_cpt_flags unicode_cpt_flags_from_utf8(const std::string & utf8) { |
| 1021 | static const unicode_cpt_flags undef(unicode_cpt_flags::UNDEFINED); |
| 1022 | if (utf8.empty()) { |
| 1023 | return undef; // undefined |
| 1024 | } |
| 1025 | size_t offset = 0; |
| 1026 | return unicode_cpt_flags_from_cpt(unicode_cpt_from_utf8(utf8, offset)); |
| 1027 | } |
| 1028 | |
| 1029 | std::string unicode_byte_to_utf8(uint8_t byte) { |
| 1030 | static std::unordered_map<uint8_t, std::string> map = unicode_byte_to_utf8_map(); |
nothing calls this directly
no test coverage detected