Count width in code points (#628)

This commit is contained in:
Victor Zverovich
2018-10-03 20:09:46 -07:00
parent deb901b9e4
commit 38325248e5
4 changed files with 40 additions and 16 deletions
+1
View File
@@ -2448,6 +2448,7 @@ TEST(FormatTest, U8StringViewLiteral) {
const fmt::char8_t *data = s.data();
EXPECT_EQ(data[0], 'a');
EXPECT_EQ(data[1], 'b');
EXPECT_EQ(format("{:*^5}"_u, "🤡"_u), "**🤡**"_u);
}
#endif