AK: Add convert_to_uint_from_octal

This commit is contained in:
Xavier Defrang 2021-12-20 21:06:54 +01:00 committed by Brian Gianforcaro
commit 9e97823ff8
Notes: sideshowbarker 2024-07-17 22:26:51 +09:00
3 changed files with 91 additions and 0 deletions

View file

@ -56,6 +56,8 @@ template<typename T = unsigned>
Optional<T> convert_to_uint(StringView, TrimWhitespace = TrimWhitespace::Yes);
template<typename T = unsigned>
Optional<T> convert_to_uint_from_hex(StringView, TrimWhitespace = TrimWhitespace::Yes);
template<typename T = unsigned>
Optional<T> convert_to_uint_from_octal(StringView, TrimWhitespace = TrimWhitespace::Yes);
bool equals_ignoring_case(StringView, StringView);
bool ends_with(StringView a, StringView b, CaseSensitivity);
bool starts_with(StringView, StringView, CaseSensitivity);