mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants
This commit is contained in:
committed by
Andreas Kling
parent
ccf4368ca5
commit
7029a8f605
@@ -170,6 +170,8 @@ template Optional<u8> convert_to_uint(const StringView& str);
|
|||||||
template Optional<u16> 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<u32> convert_to_uint(const StringView& str);
|
||||||
template Optional<u64> 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>
|
template<typename T>
|
||||||
Optional<T> convert_to_uint_from_hex(const StringView& str)
|
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<u16> StringView::to_uint() const;
|
||||||
template Optional<u32> StringView::to_uint() const;
|
template Optional<u32> StringView::to_uint() const;
|
||||||
template Optional<u64> 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
|
unsigned StringView::hash() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user