1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

AK: Move String::ends_with implementation to StringUtils

Centralizing so it can be used by other string implementations
This commit is contained in:
Brian Gianforcaro 2020-05-26 02:58:34 -07:00 committed by Andreas Kling
parent d98e743568
commit 8e4b858b3f
3 changed files with 15 additions and 7 deletions

View file

@ -43,6 +43,8 @@ int convert_to_int(const StringView&, bool& ok);
unsigned convert_to_uint(const StringView&, bool& ok);
unsigned convert_to_uint_from_hex(const StringView&, bool& ok);
bool equals_ignoring_case(const StringView&, const StringView&);
bool ends_with(const StringView& str, const StringView& end);
}
}