diff options
author | Nico Weber <thakis@chromium.org> | 2020-08-05 16:31:20 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-05 22:33:42 +0200 |
commit | ce95628b7f96924e851d8cedac1d784547600cd3 (patch) | |
tree | 533dad9932cfc954ead3cfc776a27a9f7c4333f9 /Libraries/LibWeb/Layout | |
parent | 19ac1f6368c91cc00a68717001ea4eae65567a47 (diff) | |
download | serenity-ce95628b7f96924e851d8cedac1d784547600cd3.zip |
Unicode: Try s/codepoint/code_point/g again
This time, without trailing 's'. Ran:
git grep -l 'codepoint' | xargs sed -ie 's/codepoint/code_point/g
Diffstat (limited to 'Libraries/LibWeb/Layout')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutText.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutText.cpp b/Libraries/LibWeb/Layout/LayoutText.cpp index 61839b4bb1..769abc6d93 100644 --- a/Libraries/LibWeb/Layout/LayoutText.cpp +++ b/Libraries/LibWeb/Layout/LayoutText.cpp @@ -209,7 +209,7 @@ void LayoutText::split_into_lines_by_rules(LayoutBlock& container, LayoutMode la skip_over_whitespace(); for (; it != utf8_view.end(); ++it) { if (!isspace(*it)) { - builder.append(utf8_view.as_string().characters_without_null_termination() + utf8_view.byte_offset_of(it), it.codepoint_length_in_bytes()); + builder.append(utf8_view.as_string().characters_without_null_termination() + utf8_view.byte_offset_of(it), it.code_point_length_in_bytes()); } else { builder.append(' '); skip_over_whitespace(); |