diff options
Diffstat (limited to 'AK/FlyString.h')
-rw-r--r-- | AK/FlyString.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/AK/FlyString.h b/AK/FlyString.h index 0e107053e0..d91e94c68b 100644 --- a/AK/FlyString.h +++ b/AK/FlyString.h @@ -6,6 +6,7 @@ #pragma once +#include "AK/StringUtils.h" #include <AK/String.h> namespace AK { @@ -73,9 +74,9 @@ public: FlyString to_lowercase() const; template<typename T = int> - Optional<T> to_int() const; + Optional<T> to_int(TrimWhitespace = TrimWhitespace::Yes) const; template<typename T = unsigned> - Optional<T> to_uint() const; + Optional<T> to_uint(TrimWhitespace = TrimWhitespace::Yes) const; bool equals_ignoring_case(const StringView&) const; bool starts_with(const StringView&, CaseSensitivity = CaseSensitivity::CaseSensitive) const; |