summaryrefslogtreecommitdiff
path: root/AK/String.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/String.h')
-rw-r--r--AK/String.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/String.h b/AK/String.h
index 6f9b98fdde..a3e70ba803 100644
--- a/AK/String.h
+++ b/AK/String.h
@@ -112,9 +112,9 @@ public:
[[nodiscard]] bool matches(const StringView& mask, Vector<MaskSpan>&, CaseSensitivity = CaseSensitivity::CaseInsensitive) const;
template<typename T = int>
- [[nodiscard]] Optional<T> to_int() const;
+ [[nodiscard]] Optional<T> to_int(TrimWhitespace = TrimWhitespace::Yes) const;
template<typename T = unsigned>
- [[nodiscard]] Optional<T> to_uint() const;
+ [[nodiscard]] Optional<T> to_uint(TrimWhitespace = TrimWhitespace::Yes) const;
[[nodiscard]] String to_lowercase() const;
[[nodiscard]] String to_uppercase() const;