| 57 | } |
| 58 | |
| 59 | void test_parse_utf8(lt::string_view utf8) |
| 60 | { |
| 61 | int len; |
| 62 | std::int32_t cp; |
| 63 | std::tie(cp, len) = parse_utf8_codepoint(utf8); |
| 64 | TEST_EQUAL(len, int(utf8.size())); |
| 65 | |
| 66 | std::string out; |
| 67 | append_utf8_codepoint(out, cp); |
| 68 | TEST_EQUAL(out, utf8); |
| 69 | } |
| 70 | |
| 71 | void parse_error(lt::string_view utf8) |
| 72 | { |
no test coverage detected