iceberg-cpp
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
iceberg::StringUtils Class Reference

Static Public Member Functions

static std::string ToLower (std::string_view str)
 
static std::string ToUpper (std::string_view str)
 
static bool EqualsIgnoreCase (std::string_view lhs, std::string_view rhs)
 
static bool StartsWithIgnoreCase (std::string_view str, std::string_view prefix)
 
static size_t CodePointCount (std::string_view str)
 Count the number of code points in a UTF-8 string.
 
template<typename T >
requires std::is_arithmetic_v<T> && FromChars<T> && (!std::same_as<T, bool>)
static Result< T > ParseNumber (std::string_view str)
 
static Result< std::vector< uint8_t > > HexStringToBytes (std::string_view hex)
 Decode a hex string (upper or lower case) into bytes. Returns an error if the string has odd length or contains invalid hex characters.
 
template<typename T >
requires std::is_floating_point_v<T> && (!FromChars<T>)
static Result< T > ParseNumber (std::string_view str)
 

The documentation for this class was generated from the following files: