mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +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:
parent
19ac1f6368
commit
ce95628b7f
45 changed files with 441 additions and 441 deletions
|
@ -35,14 +35,14 @@ namespace AK {
|
|||
class Utf32View {
|
||||
public:
|
||||
Utf32View() { }
|
||||
Utf32View(const u32* codepoints, size_t length)
|
||||
: m_codepoints(codepoints)
|
||||
Utf32View(const u32* code_points, size_t length)
|
||||
: m_code_points(code_points)
|
||||
, m_length(length)
|
||||
{
|
||||
ASSERT(codepoints || length == 0);
|
||||
ASSERT(code_points || length == 0);
|
||||
}
|
||||
|
||||
const u32* codepoints() const { return m_codepoints; }
|
||||
const u32* code_points() const { return m_code_points; }
|
||||
bool is_empty() const { return m_length == 0; }
|
||||
size_t length() const { return m_length; }
|
||||
|
||||
|
@ -53,11 +53,11 @@ public:
|
|||
ASSERT(offset < m_length);
|
||||
ASSERT(!Checked<size_t>::addition_would_overflow(offset, length));
|
||||
ASSERT((offset + length) <= m_length);
|
||||
return Utf32View(m_codepoints + offset, length);
|
||||
return Utf32View(m_code_points + offset, length);
|
||||
}
|
||||
|
||||
private:
|
||||
const u32* m_codepoints { nullptr };
|
||||
const u32* m_code_points { nullptr };
|
||||
size_t m_length { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue