From 19ac1f6368c91cc00a68717001ea4eae65567a47 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 5 Aug 2020 16:28:19 -0400 Subject: Revert "Unicode: s/codepoint/code_point/g" This reverts commit ea9ac3155d1774f13ac4e9a96605c0e85a8f299e. It replaced "codepoint" with "code_points", not "code_point". --- Libraries/LibVT/Line.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Libraries/LibVT/Line.h') diff --git a/Libraries/LibVT/Line.h b/Libraries/LibVT/Line.h index 180039b904..ac456f8bfc 100644 --- a/Libraries/LibVT/Line.h +++ b/Libraries/LibVT/Line.h @@ -90,22 +90,22 @@ public: u16 length() const { return m_length; } - u32 code_points(size_t index) const + u32 codepoint(size_t index) const { if (m_utf32) - return m_code_pointss.as_u32[index]; - return m_code_pointss.as_u8[index]; + return m_codepoints.as_u32[index]; + return m_codepoints.as_u8[index]; } - void set_code_points(size_t index, u32 code_points) + void set_codepoint(size_t index, u32 codepoint) { - if (!m_utf32 && code_points & 0xffffff80u) + if (!m_utf32 && codepoint & 0xffffff80u) convert_to_utf32(); if (m_utf32) - m_code_pointss.as_u32[index] = code_points; + m_codepoints.as_u32[index] = codepoint; else - m_code_pointss.as_u8[index] = code_points; + m_codepoints.as_u8[index] = codepoint; } bool is_dirty() const { return m_dirty; } @@ -122,7 +122,7 @@ private: union { u8* as_u8; u32* as_u32; - } m_code_pointss { nullptr }; + } m_codepoints { nullptr }; Attribute* m_attributes { nullptr }; bool m_dirty { false }; bool m_utf32 { false }; -- cgit v1.2.3