|
| Float | toFloat (std::string_view str) |
| | 字符串 -> Float
|
| |
| int | toInt (std::string_view str, int default_v=0) |
| | 转为整数,失败返回设定的默认值
|
| |
| int64_t | toInt64 (std::string_view str, int64_t default_v=0) |
| | 转为整数,失败返回设定的默认值
|
| |
| bool | getInt (std::string_view str, int &ret) |
| | 转为整数,失败不修改原值
|
| |
| template<std::size_t N> |
| std::array< int, N > | toPoint (std::string_view str, char d=',') |
| | 字符串 -> Point
|
| |
| template<std::size_t N> |
| std::array< Float, N > | toPosition (std::string_view str, char d=',') |
| | 字符串 -> Position
|
| |
| Point2 | toPoint2 (std::string_view str, char d=',') |
| |
| Position | toPosition2 (std::string_view str, char d=',') |
| |
| constexpr StringType | GetType (std::string_view str) |
| | 返回字符串类型
|
| |
| std::string | AddQuotes (std::string_view str, char quotes='\"') |
| |
| constexpr std::string_view | GetNotFileName () |
| | 返回不能作为文件名的字符
|
| |