|
| String (const wchar_t *str) noexcept |
|
| String (const std::wstring &str) noexcept |
|
| String (const String &str) noexcept |
|
| String (String &&str) noexcept |
|
bool | operator== (const String &str) const noexcept |
|
bool | operator!= (const String &str) const noexcept |
|
String & | operator= (const String &str) noexcept |
|
| operator const std::wstring & () const noexcept |
|
wchar_t | operator[] (std::size_t index) const noexcept |
|
wchar_t | at (std::size_t index) const |
| 获取指定位置的字符
|
|
wchar_t & | operator[] (std::size_t index) noexcept |
|
wchar_t & | at (std::size_t index) |
| 这是一个重载
|
|
int | length () const noexcept |
|
String | operator+ (const String &str) const noexcept |
|
String & | operator+= (const String &str) noexcept |
|
void | clear () noexcept |
| 清空字符串
|
|
void | strip () noexcept |
| 删除字符串开头和结尾的空白字符
|
|
void | toLower () noexcept |
| 将字符串转换为小写
|
|
void | toUpper () noexcept |
| 将字符串转换为大写
|
|
std::vector< String > | split (const String &delimiter) const noexcept |
| 按照给定的分隔符分割字符串,返回分割后的字符串数组
|
|
String | join (const std::vector< String > &strs) const noexcept |
| 将此字符串作为分隔符,连接给定的字符串数组,返回连接后的字符串
|
|
| Object () noexcept |
| 构造函数
|
|
virtual | ~Object () noexcept |
| 析构函数
|
|