From 37df4bbd9060fdc08d0632d06b167e9bae36a0f8 Mon Sep 17 00:00:00 2001 From: Sahan Fernando Date: Fri, 11 Dec 2020 00:17:30 +1100 Subject: AK: Generalize AK::String::to_int() for more types --- AK/String.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'AK/String.h') diff --git a/AK/String.h b/AK/String.h index edeceeb87b..c30f8bb715 100644 --- a/AK/String.h +++ b/AK/String.h @@ -114,8 +114,10 @@ public: bool matches(const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive) const; bool matches(const StringView& mask, Vector&, CaseSensitivity = CaseSensitivity::CaseInsensitive) const; - Optional to_int() const; - Optional to_uint() const; + template + Optional to_int() const; + template + Optional to_uint() const; String to_lowercase() const; String to_uppercase() const; -- cgit v1.2.3