mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
Everywhere: codepoint => code point
This commit is contained in:
parent
a8ae8b24de
commit
12a42edd13
18 changed files with 240 additions and 240 deletions
|
@ -435,8 +435,8 @@ void IconView::get_item_rects(int item_index, ItemData& item_data, const Gfx::Fo
|
|||
Utf8View utf8_view(item_data.text);
|
||||
auto it = utf8_view.begin();
|
||||
for (; it != utf8_view.end(); ++it) {
|
||||
auto codepoint = *it;
|
||||
auto glyph_width = font.glyph_width(codepoint);
|
||||
auto code_point = *it;
|
||||
auto glyph_width = font.glyph_width(code_point);
|
||||
if ((current_line_width + glyph_width + font.glyph_spacing()) > available_width) {
|
||||
item_data.wrapped_text_lines.append(item_data.text.substring_view(current_line_start, utf8_view.byte_offset_of(it) - current_line_start));
|
||||
current_line_start = utf8_view.byte_offset_of(it);
|
||||
|
|
|
@ -84,7 +84,7 @@ public:
|
|||
EndOfWord,
|
||||
// End of a WORD.
|
||||
EndOfWORD,
|
||||
// Characters (or Unicode codepoints based on how pedantic you want to
|
||||
// Characters (or Unicode code points based on how pedantic you want to
|
||||
// get).
|
||||
Character,
|
||||
// Used for find-mode.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue