1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Unicode: s/codepoint/code_point/g

Unicode calls them "code points" so let's follow their style.
This commit is contained in:
Andreas Kling 2020-08-03 19:06:41 +02:00
parent b139fb9f38
commit ea9ac3155d
45 changed files with 449 additions and 449 deletions

View file

@ -37,9 +37,9 @@ TEST_CASE(decode_ascii)
size_t expected_size = sizeof(expected) / sizeof(expected[0]);
size_t i = 0;
for (u32 codepoint : utf8) {
for (u32 code_points : utf8) {
ASSERT(i < expected_size);
EXPECT_EQ(codepoint, expected[i]);
EXPECT_EQ(code_points, expected[i]);
i++;
}
EXPECT_EQ(i, expected_size);
@ -56,9 +56,9 @@ TEST_CASE(decode_utf8)
size_t expected_size = sizeof(expected) / sizeof(expected[0]);
size_t i = 0;
for (u32 codepoint : utf8) {
for (u32 code_points : utf8) {
ASSERT(i < expected_size);
EXPECT_EQ(codepoint, expected[i]);
EXPECT_EQ(code_points, expected[i]);
i++;
}
EXPECT_EQ(i, expected_size);