mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
AK: StringUtils, add "convert_to_uint_from_hex" method
New method to convert hex string unsigned integer.
This commit is contained in:
committed by
Andreas Kling
parent
9300a8cfe5
commit
738235574f
Notes:
sideshowbarker
2024-07-19 06:18:32 +09:00
Author: https://github.com/asliturk Commit: https://github.com/SerenityOS/serenity/commit/738235574f3 Pull-request: https://github.com/SerenityOS/serenity/pull/2310 Reviewed-by: https://github.com/linusg
@@ -41,8 +41,8 @@ namespace StringUtils {
|
||||
bool matches(const StringView& str, const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive);
|
||||
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&);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user