mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants
This commit is contained in:
parent
ccf4368ca5
commit
7029a8f605
Notes:
sideshowbarker
2024-07-18 23:55:44 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/7029a8f605b Pull-request: https://github.com/SerenityOS/serenity/pull/4903
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue