Improve code point computation

This commit is contained in:
Victor Zverovich committed 2021-02-13 08:46:19 -08:00
1 parent ee0fed639c
commit 13b117b5bc
4 files changed
+139 -129

No files matched your search

+2 -2
View File
@@ -408,9 +408,9 @@ TEST(FormatTest, FormatErrorCode) {
}
}
TEST(FormatTest, CountCodePoints) {
TEST(FormatTest, ComputeWidth) {
EXPECT_EQ(4,
fmt::detail::count_code_points(
fmt::detail::compute_width(
fmt::basic_string_view<fmt::detail::char8_type>(
reinterpret_cast<const fmt::detail::char8_type*>("ёжик"))));
}