mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
AK: Add String::ends_with{,_bytes}()
This commit is contained in:
parent
bfdbb4b6ed
commit
45dc3d8a3e
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/linusg
Commit: 45dc3d8a3e
Pull-request: https://github.com/SerenityOS/serenity/pull/17698
Reviewed-by: https://github.com/kennethmyhra ✅
2 changed files with 15 additions and 2 deletions
|
@ -112,6 +112,9 @@ public:
|
|||
bool starts_with(u32 code_point) const;
|
||||
bool starts_with_bytes(StringView) const;
|
||||
|
||||
bool ends_with(u32 code_point) const;
|
||||
bool ends_with_bytes(StringView) const;
|
||||
|
||||
// Creates a substring with a deep copy of the specified data window.
|
||||
ErrorOr<String> substring_from_byte_offset(size_t start, size_t byte_count) const;
|
||||
ErrorOr<String> substring_from_byte_offset(size_t start) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue