1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

Unicode: Try s/codepoint/code_point/g again

This time, without trailing 's'. Ran:

    git grep -l 'codepoint' | xargs sed -ie 's/codepoint/code_point/g
This commit is contained in:
Nico Weber 2020-08-05 16:31:20 -04:00 committed by Andreas Kling
parent 19ac1f6368
commit ce95628b7f
45 changed files with 441 additions and 441 deletions

View file

@ -90,22 +90,22 @@ public:
u16 length() const { return m_length; }
u32 codepoint(size_t index) const
u32 code_point(size_t index) const
{
if (m_utf32)
return m_codepoints.as_u32[index];
return m_codepoints.as_u8[index];
return m_code_points.as_u32[index];
return m_code_points.as_u8[index];
}
void set_codepoint(size_t index, u32 codepoint)
void set_code_point(size_t index, u32 code_point)
{
if (!m_utf32 && codepoint & 0xffffff80u)
if (!m_utf32 && code_point & 0xffffff80u)
convert_to_utf32();
if (m_utf32)
m_codepoints.as_u32[index] = codepoint;
m_code_points.as_u32[index] = code_point;
else
m_codepoints.as_u8[index] = codepoint;
m_code_points.as_u8[index] = code_point;
}
bool is_dirty() const { return m_dirty; }
@ -122,7 +122,7 @@ private:
union {
u8* as_u8;
u32* as_u32;
} m_codepoints { nullptr };
} m_code_points { nullptr };
Attribute* m_attributes { nullptr };
bool m_dirty { false };
bool m_utf32 { false };