diff options
Diffstat (limited to 'src/test-unicode.cpp')
-rw-r--r-- | src/test-unicode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp index 2dfabef..05370c7 100644 --- a/src/test-unicode.cpp +++ b/src/test-unicode.cpp @@ -18,7 +18,7 @@ using namespace std::chrono_literals; -typedef std::tuple<std::basic_string<char8_t>, std::basic_string<char16_t>, std::basic_string<char32_t>> types_collection_type; +typedef std::tuple<std::basic_string<utf8_t>, std::basic_string<char16_t>, std::basic_string<char32_t>> types_collection_type; // create tuple of the same string, in UTF-8, UTF-16 and UTF-32 #define SUCCESS_TUPLE(x) {u8 ## x, u ## x, U ## x} @@ -34,7 +34,7 @@ std::vector<types_collection_type> success_sets { }; // Error cases: throwing upon convert to all other types -std::vector<std::basic_string<char8_t>> failure_strings_char8_t { +std::vector<std::basic_string<utf8_t>> failure_strings_char8_t { u8"\x80", // utf-8 continuation byte u8"\x81", // utf-8 continuation byte u8"\xc3ä", // initial byte of utf-8 "ä", followed by valid utf-8 "ä" @@ -56,7 +56,7 @@ std::vector<std::basic_string<char32_t>> failure_strings_char32_t { // output operators must be in same namespace as the type itself namespace std { -std::ostream& operator<<(std::ostream& os, std::basic_string<char8_t> const& s) +std::ostream& operator<<(std::ostream& os, std::basic_string<utf8_t> const& s) { os << "["; for (auto& c: s) |