diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-03 19:06:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-03 19:06:41 +0200 |
commit | ea9ac3155d1774f13ac4e9a96605c0e85a8f299e (patch) | |
tree | 79965fb23c2c75ae48fcbf1300e40671ea90f0df /Libraries/LibGUI/TextDocument.h | |
parent | b139fb9f383911130336ac995cd2671662f9c963 (diff) | |
download | serenity-ea9ac3155d1774f13ac4e9a96605c0e85a8f299e.zip |
Unicode: s/codepoint/code_point/g
Unicode calls them "code points" so let's follow their style.
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..062589a7c8 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_points_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_pointss(), length() }; } + const u32* code_pointss() 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>); |