1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Everywhere: codepoint => code point

This commit is contained in:
Andreas Kling 2021-06-01 10:01:11 +02:00
parent a8ae8b24de
commit 12a42edd13
18 changed files with 240 additions and 240 deletions

View file

@ -39,7 +39,7 @@ bool Position::increment_offset()
for (auto iterator = text.begin(); !iterator.done(); ++iterator) {
if (text.byte_offset_of(iterator) >= m_offset) {
// NOTE: If the current offset is inside a multi-byte codepoint, it will be moved to the start of the next codepoint.
// NOTE: If the current offset is inside a multi-byte code point, it will be moved to the start of the next code point.
m_offset = text.byte_offset_of(++iterator);
return true;
}
@ -66,7 +66,7 @@ bool Position::decrement_offset()
last_smaller_offset = text.byte_offset_of(iterator);
}
// NOTE: If the current offset is inside a multi-byte codepoint, it will be moved to the start of that codepoint.
// NOTE: If the current offset is inside a multi-byte code point, it will be moved to the start of that code point.
m_offset = last_smaller_offset;
return true;
}