summaryrefslogtreecommitdiff
path: root/Libraries/LibVT/Line.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-05 16:28:19 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-05 22:33:42 +0200
commit19ac1f6368c91cc00a68717001ea4eae65567a47 (patch)
tree65e4e9a85f0a39085c80bf954d5889e396e0ee4e /Libraries/LibVT/Line.h
parent9664bac281c72822da59e7f83af65d4f411d10a5 (diff)
downloadserenity-19ac1f6368c91cc00a68717001ea4eae65567a47.zip
Revert "Unicode: s/codepoint/code_point/g"
This reverts commit ea9ac3155d1774f13ac4e9a96605c0e85a8f299e. It replaced "codepoint" with "code_points", not "code_point".
Diffstat (limited to 'Libraries/LibVT/Line.h')
-rw-r--r--Libraries/LibVT/Line.h16
1 files changed, 8 insertions, 8 deletions
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 };