mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
AK: Add a Utf16View::starts_with method
Based heavily on Utf8View::starts_with.
This commit is contained in:
parent
c46ba7e68d
commit
1b4a23095c
3 changed files with 47 additions and 0 deletions
|
@ -111,6 +111,8 @@ public:
|
|||
Utf16View unicode_substring_view(size_t code_point_offset, size_t code_point_length) const;
|
||||
Utf16View unicode_substring_view(size_t code_point_offset) const { return unicode_substring_view(code_point_offset, length_in_code_points() - code_point_offset); }
|
||||
|
||||
bool starts_with(Utf16View const&) const;
|
||||
|
||||
bool validate(size_t& valid_code_units) const;
|
||||
bool validate() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue