mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Revert "Unicode: s/codepoint/code_point/g"
This reverts commit ea9ac3155d
.
It replaced "codepoint" with "code_points", not "code_point".
This commit is contained in:
parent
9664bac281
commit
19ac1f6368
Notes:
sideshowbarker
2024-07-19 04:15:33 +09:00
Author: https://github.com/nico
Commit: 19ac1f6368
Pull-request: https://github.com/SerenityOS/serenity/pull/3018
45 changed files with 449 additions and 449 deletions
|
@ -35,14 +35,14 @@ namespace AK {
|
|||
class Utf32View {
|
||||
public:
|
||||
Utf32View() { }
|
||||
Utf32View(const u32* code_pointss, size_t length)
|
||||
: m_code_pointss(code_pointss)
|
||||
Utf32View(const u32* codepoints, size_t length)
|
||||
: m_codepoints(codepoints)
|
||||
, m_length(length)
|
||||
{
|
||||
ASSERT(code_pointss || length == 0);
|
||||
ASSERT(codepoints || length == 0);
|
||||
}
|
||||
|
||||
const u32* code_pointss() const { return m_code_pointss; }
|
||||
const u32* codepoints() const { return m_codepoints; }
|
||||
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_code_pointss + offset, length);
|
||||
return Utf32View(m_codepoints + offset, length);
|
||||
}
|
||||
|
||||
private:
|
||||
const u32* m_code_pointss { nullptr };
|
||||
const u32* m_codepoints { nullptr };
|
||||
size_t m_length { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue