mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 15:08:12 +00:00
AK: Specialise convert_to_uint<T> and to_uint<T> for 'long' variants
This commit is contained in:
parent
ccf4368ca5
commit
7029a8f605
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<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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue