mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
AK: Add Utf16View::find_code_unit_offset(_ignoring_case)
This commit is contained in:
parent
7d7f6fa494
commit
cc0a28ee7d
Notes:
github-actions[bot]
2025-06-13 13:10:51 +00:00
Author: https://github.com/gmta
Commit: cc0a28ee7d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5067
Reviewed-by: https://github.com/tcl3
Reviewed-by: https://github.com/trflynn89
3 changed files with 62 additions and 0 deletions
|
@ -134,6 +134,9 @@ 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); }
|
||||
|
||||
Optional<size_t> find_code_unit_offset(Utf16View const& needle, size_t start_offset = 0) const;
|
||||
Optional<size_t> find_code_unit_offset_ignoring_case(Utf16View const& needle, size_t start_offset = 0) const;
|
||||
|
||||
bool starts_with(Utf16View const&) const;
|
||||
bool is_code_unit_less_than(Utf16View const& other) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue