feat(string): add functions to categorize strings
This commit is contained in:
@ -1019,6 +1019,32 @@ public:
|
||||
return AsConst(*this).GetData();
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/** @return true if the string only contains valid characters, false otherwise. */
|
||||
NODISCARD FORCEINLINE constexpr bool IsValid() const
|
||||
{
|
||||
return TStringView<ElementType>(*this).IsValid();
|
||||
}
|
||||
|
||||
/** @return true if the string only contains ASCII characters, false otherwise. */
|
||||
NODISCARD FORCEINLINE constexpr bool IsASCII() const
|
||||
{
|
||||
return TStringView<ElementType>(*this).IsASCII();
|
||||
}
|
||||
|
||||
/** @return true if the string only contains numeric characters, false otherwise. */
|
||||
NODISCARD FORCEINLINE constexpr bool IsNumeric() const
|
||||
{
|
||||
return TStringView<ElementType>(*this).IsNumeric();
|
||||
}
|
||||
|
||||
/** @return true if the string only contains numeric characters, false otherwise. */
|
||||
NODISCARD FORCEINLINE constexpr bool IsNumeric(unsigned Base) const
|
||||
{
|
||||
return TStringView<ElementType>(*this).IsNumeric(Base);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user