|
| std::string & | dl::operator+= (std::string &a, std::string_view b) |
| |
| std::string | dl::operator+ (const std::string &a, std::string_view b) |
| |
| std::string | dl::operator+ (std::string_view a, std::string_view b) |
| |
| template<typename T> |
| std::string | dl::to_string (T v) |
| | to_string包装
|
| |
| template<typename T, size_t N> |
| std::string | dl::to_string (const std::array< T, N > &arr, std::string_view delimiter=", ") |
| | array通用to_string
|
| |
| std::string | dl::to_string (std::error_code code) |
| | 错误码信息
|
| |
| template<> |
| std::string | dl::to_string< BufferView > (BufferView buf) |
| | buf转为utf8字符串(不进行检查)
|
| |
| template<> |
| std::string | dl::to_string< Buffer > (Buffer buf) |
| |
| std::string | dl::to_string_check (BufferView buf) |
| | buf转为utf8字符串(进行检查)
|
| |
| std::string | dl::to_string_hex (BufferView buf, bool add_tag=false) |
| | buf转为16进制字符串
|
| |
| Float | dl::String::toFloat (std::string_view str) |
| | 字符串 -> Float
|
| |
| int | dl::String::toInt (std::string_view str, int default_v=0) |
| | 转为整数,失败返回设定的默认值
|
| |
| int64_t | dl::String::toInt64 (std::string_view str, int64_t default_v=0) |
| | 转为整数,失败返回设定的默认值
|
| |
| bool | dl::String::getInt (std::string_view str, int &ret) |
| | 转为整数,失败不修改原值
|
| |
| template<std::size_t N> |
| std::array< int, N > | dl::String::toPoint (std::string_view str, char d=',') |
| | 字符串 -> Point
|
| |
| template<std::size_t N> |
| std::array< Float, N > | dl::String::toPosition (std::string_view str, char d=',') |
| | 字符串 -> Position
|
| |
| Point2 | dl::String::toPoint2 (std::string_view str, char d=',') |
| |
| Position | dl::String::toPosition2 (std::string_view str, char d=',') |
| |
| constexpr StringType | dl::String::GetType (std::string_view str) |
| | 返回字符串类型
|
| |
| std::string | dl::String::AddQuotes (std::string_view str, char quotes='\"') |
| |
| constexpr std::string_view | dl::String::GetNotFileName () |
| | 返回不能作为文件名的字符
|
| |
| std::string | dl::to_string (const Vector2< std::string > &vec2) |
| |