From ea9ac3155d1774f13ac4e9a96605c0e85a8f299e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 3 Aug 2020 19:06:41 +0200 Subject: Unicode: s/codepoint/code_point/g Unicode calls them "code points" so let's follow their style. --- Libraries/LibGUI/TextDocument.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Libraries/LibGUI/TextDocument.h') 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); -- cgit v1.2.3