diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-01-11 21:39:22 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-11 21:09:36 +0100 |
commit | 7029a8f605bdccc85db25ce4ef0b8e1dbe89f941 (patch) | |
tree | b1c22d3f4ad7afad1388531871c06bb9738fec83 /AK | |
parent | ccf4368ca5d6a72eab289d2d64db316f95023ab2 (diff) | |
download | serenity-7029a8f605bdccc85db25ce4ef0b8e1dbe89f941.zip |
AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants
Diffstat (limited to 'AK')
-rw-r--r-- | AK/StringUtils.cpp | 2 | ||||
-rw-r--r-- | AK/StringView.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/AK/StringUtils.cpp b/AK/StringUtils.cpp index 239b3156d0..e808d7d499 100644 --- a/AK/StringUtils.cpp +++ b/AK/StringUtils.cpp @@ -170,6 +170,8 @@ template Optional<u8> convert_to_uint(const StringView& str); template Optional<u16> convert_to_uint(const StringView& str); template Optional<u32> convert_to_uint(const StringView& str); template Optional<u64> convert_to_uint(const StringView& str); +template Optional<long> convert_to_uint(const StringView& str); +template Optional<long long> convert_to_uint(const StringView& str); template<typename T> Optional<T> convert_to_uint_from_hex(const StringView& str) diff --git a/AK/StringView.cpp b/AK/StringView.cpp index f1ee2dbb86..82c7b94619 100644 --- a/AK/StringView.cpp +++ b/AK/StringView.cpp @@ -243,6 +243,8 @@ template Optional<u8> StringView::to_uint() const; template Optional<u16> StringView::to_uint() const; template Optional<u32> StringView::to_uint() const; template Optional<u64> StringView::to_uint() const; +template Optional<long> StringView::to_uint() const; +template Optional<long long> StringView::to_uint() const; unsigned StringView::hash() const { |