mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
AK: Use size_t in methods of Utf8View.
This commit is contained in:
parent
3aaece8733
commit
2927656d85
2 changed files with 15 additions and 15 deletions
|
@ -50,13 +50,13 @@ public:
|
|||
return m_ptr - other.m_ptr;
|
||||
}
|
||||
|
||||
int code_point_length_in_bytes() const;
|
||||
bool done() const { return !m_length; }
|
||||
size_t code_point_length_in_bytes() const;
|
||||
bool done() const { return m_length == 0; }
|
||||
|
||||
private:
|
||||
Utf8CodepointIterator(const unsigned char*, int);
|
||||
Utf8CodepointIterator(const unsigned char*, size_t);
|
||||
const unsigned char* m_ptr { nullptr };
|
||||
int m_length { -1 };
|
||||
size_t m_length;
|
||||
};
|
||||
|
||||
class Utf8View {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue