summaryrefslogtreecommitdiff
path: root/Libraries/LibVT/Line.h
diff options
context:
space:
mode:
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 };