mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Expose the current position of a Utf8CodePointIterator as a pointer
This commit is contained in:
parent
a3d6d9db37
commit
b876e97719
Notes:
sideshowbarker
2024-07-16 22:33:30 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/b876e97719 Pull-request: https://github.com/SerenityOS/serenity/pull/17989
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ public:
|
|||
return m_ptr - other.m_ptr;
|
||||
}
|
||||
|
||||
u8 const* ptr() const { return m_ptr; }
|
||||
|
||||
// Note : These methods return the information about the underlying UTF-8 bytes.
|
||||
// If the UTF-8 string encoding is not valid at the iterator's position, then the underlying bytes might be different from the
|
||||
// decoded character's re-encoded bytes (which will be an `0xFFFD REPLACEMENT CHARACTER` with an UTF-8 length of three bytes).
|
||||
|
|
Loading…
Reference in a new issue