mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 13:00:29 +00:00
AK: Expand to_int<i64> to to_int<long> and to_int<long long>
This change also applys to to_uint On i686 u64 == long long but on x86_64 u64 == long. Therefor on either arch, one of the instantiations is missed. This change makes sure that all integer types have an instantiation.
This commit is contained in:
parent
285038ebcf
commit
accf4b338d
Notes:
sideshowbarker
2024-07-18 03:02:08 +09:00
Author: https://github.com/petelliott Commit: https://github.com/SerenityOS/serenity/commit/accf4b338de Pull-request: https://github.com/SerenityOS/serenity/pull/10271 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/kleinesfilmroellchen
2 changed files with 8 additions and 4 deletions
|
@ -116,7 +116,8 @@ Optional<T> convert_to_int(const StringView& str, TrimWhitespace trim_whitespace
|
|||
template Optional<i8> convert_to_int(const StringView& str, TrimWhitespace);
|
||||
template Optional<i16> convert_to_int(const StringView& str, TrimWhitespace);
|
||||
template Optional<i32> convert_to_int(const StringView& str, TrimWhitespace);
|
||||
template Optional<i64> convert_to_int(const StringView& str, TrimWhitespace);
|
||||
template Optional<long> convert_to_int(const StringView& str, TrimWhitespace);
|
||||
template Optional<long long> convert_to_int(const StringView& str, TrimWhitespace);
|
||||
|
||||
template<typename T>
|
||||
Optional<T> convert_to_uint(const StringView& str, TrimWhitespace trim_whitespace)
|
||||
|
@ -146,7 +147,8 @@ Optional<T> convert_to_uint(const StringView& str, TrimWhitespace trim_whitespac
|
|||
template Optional<u8> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<u16> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<u32> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<u64> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<unsigned long> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<unsigned long long> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<long> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
template Optional<long long> convert_to_uint(const StringView& str, TrimWhitespace);
|
||||
|
||||
|
|
|
@ -215,7 +215,8 @@ Optional<T> StringView::to_int() const
|
|||
template Optional<i8> StringView::to_int() const;
|
||||
template Optional<i16> StringView::to_int() const;
|
||||
template Optional<i32> StringView::to_int() const;
|
||||
template Optional<i64> StringView::to_int() const;
|
||||
template Optional<long> StringView::to_int() const;
|
||||
template Optional<long long> StringView::to_int() const;
|
||||
|
||||
template<typename T>
|
||||
Optional<T> StringView::to_uint() const
|
||||
|
@ -226,7 +227,8 @@ Optional<T> StringView::to_uint() const
|
|||
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<unsigned long> StringView::to_uint() const;
|
||||
template Optional<unsigned long long> StringView::to_uint() const;
|
||||
template Optional<long> StringView::to_uint() const;
|
||||
template Optional<long long> StringView::to_uint() const;
|
||||
|
||||
|
|
Loading…
Reference in a new issue