mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
AK: Add DeprecatedFlyString::to_number<T>
This commit is contained in:
parent
159eda5c6d
commit
a4ecc65398
1 changed files with 6 additions and 0 deletions
|
@ -69,6 +69,12 @@ public:
|
||||||
|
|
||||||
DeprecatedFlyString to_lowercase() const;
|
DeprecatedFlyString to_lowercase() const;
|
||||||
|
|
||||||
|
template<Arithmetic T>
|
||||||
|
Optional<T> to_number(TrimWhitespace trim_whitespace = TrimWhitespace::Yes) const
|
||||||
|
{
|
||||||
|
return view().to_number<T>(trim_whitespace);
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T = int>
|
template<typename T = int>
|
||||||
Optional<T> to_int(TrimWhitespace = TrimWhitespace::Yes) const;
|
Optional<T> to_int(TrimWhitespace = TrimWhitespace::Yes) const;
|
||||||
template<typename T = unsigned>
|
template<typename T = unsigned>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue