mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:07:35 +00:00
UTF-8: Add Utf8CodepointIterator::codepoint_length_in_bytes()
This allows you to retrieve the length (in bytes) of the codepoint the iterator is currently pointing at.
This commit is contained in:
parent
ab9e6166e8
commit
f4e6dae6fe
2 changed files with 12 additions and 0 deletions
|
@ -18,6 +18,8 @@ public:
|
|||
Utf8CodepointIterator& operator++();
|
||||
u32 operator*() const;
|
||||
|
||||
int codepoint_length_in_bytes() const;
|
||||
|
||||
private:
|
||||
Utf8CodepointIterator(const unsigned char*, int);
|
||||
const unsigned char* m_ptr { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue