Cleanup unicode checks

This commit is contained in:
Victor Zverovich
2024-05-11 19:34:32 -07:00
parent 3460b30fd5
commit 7d6ae972b9
6 changed files with 16 additions and 19 deletions

View File

@@ -1800,7 +1800,7 @@ auto find_escape(const Char* begin, const Char* end)
inline auto find_escape(const char* begin, const char* end)
-> find_escape_result<char> {
if (!is_utf8()) return find_escape<char>(begin, end);
if (!use_utf8()) return find_escape<char>(begin, end);
auto result = find_escape_result<char>{end, nullptr, 0};
for_each_codepoint(string_view(begin, to_unsigned(end - begin)),
[&](uint32_t cp, string_view sv) {