mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
AK: Add a is_null() method to Utf{8,32}View
Both of these can be null as well as empty, and there's a difference.
This commit is contained in:
parent
2961982277
commit
55fa51b4e2
2 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ public:
|
|||
|
||||
const u32* code_points() const { return m_code_points; }
|
||||
bool is_empty() const { return m_length == 0; }
|
||||
bool is_null() const { return !m_code_points; }
|
||||
size_t length() const { return m_length; }
|
||||
|
||||
size_t iterator_offset(const Utf32CodePointIterator& it) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue