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/LibGUI/TextDocument.h | |
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/LibGUI/TextDocument.h')
-rw-r--r-- | Libraries/LibGUI/TextDocument.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/TextDocument.h b/Libraries/LibGUI/TextDocument.h index 8fa922dd2f..ff5f8e6cc3 100644 --- a/Libraries/LibGUI/TextDocument.h +++ b/Libraries/LibGUI/TextDocument.h @@ -113,7 +113,7 @@ public: TextPosition next_position_after(const TextPosition&, SearchShouldWrap = SearchShouldWrap::Yes) const; TextPosition previous_position_before(const TextPosition&, SearchShouldWrap = SearchShouldWrap::Yes) const; - u32 codepoint_at(const TextPosition&) const; + u32 code_point_at(const TextPosition&) const; TextRange range_for_entire_line(size_t line_index) const; @@ -159,8 +159,8 @@ public: String to_utf8() const; - Utf32View view() const { return { codepoints(), length() }; } - const u32* codepoints() const { return m_text.data(); } + Utf32View view() const { return { code_points(), length() }; } + const u32* code_points() const { return m_text.data(); } size_t length() const { return m_text.size(); } void set_text(TextDocument&, const StringView&); void set_text(TextDocument&, Vector<u32>); |