Implement UTF-8 string support

This commit is contained in:
Victor Zverovich
2018-09-30 14:09:03 -07:00
parent f8027414f5
commit 3f4cfa6c60
2 changed files with 52 additions and 57 deletions
+4
View File
@@ -2430,3 +2430,7 @@ TEST(FormatTest, U8StringViewLiteral) {
EXPECT_EQ(data[1], 'b');
}
#endif
TEST(FormatTest, FormatU8String) {
EXPECT_EQ(format(fmt::u8string_view("{}"), 42), fmt::u8string_view("42"));
}