|
| NEFORCE_CONSTEXPR20 | basic_string () |
| | 默认构造函数
|
| NEFORCE_CONSTEXPR20 | basic_string (size_type n) |
| | 构造函数,指定大小
|
| NEFORCE_CONSTEXPR20 | basic_string (size_type n, int32_t value) |
| | 构造函数,指定大小和32位整数值
|
| NEFORCE_CONSTEXPR20 | basic_string (size_type n, int64_t value) |
| | 构造函数,指定大小和64位整数值
|
| NEFORCE_CONSTEXPR20 | basic_string (size_type n, value_type value) |
| | 构造函数,指定大小和填充字符
|
| NEFORCE_CONSTEXPR20 | basic_string (const basic_string &other) |
| | 拷贝构造函数
|
| NEFORCE_CONSTEXPR20 basic_string & | operator= (const basic_string &other) |
| | 拷贝赋值运算符
|
| NEFORCE_CONSTEXPR20 | basic_string (basic_string &&other) noexcept |
| | 移动构造函数
|
| NEFORCE_CONSTEXPR20 basic_string & | operator= (basic_string &&other) noexcept |
| | 移动赋值运算符
|
| NEFORCE_CONSTEXPR20 | basic_string (view_type view) |
| | 从字符串视图构造
|
| NEFORCE_CONSTEXPR20 | basic_string (view_type view, const size_type n) |
| | 从字符串视图构造(指定长度)
|
| NEFORCE_CONSTEXPR20 basic_string & | operator= (view_type view) |
| | 字符串视图赋值运算符
|
| NEFORCE_CONSTEXPR20 | basic_string (const basic_string &other, size_type position) |
| | 从子串构造
|
| NEFORCE_CONSTEXPR20 | basic_string (const basic_string &other, size_type position, size_type n) |
| | 从子串构造(指定长度)
|
| NEFORCE_CONSTEXPR20 | basic_string (const_pointer str) |
| | 从C风格字符串构造
|
| NEFORCE_CONSTEXPR20 | basic_string (const_pointer str, const size_type n) |
| | 从字符数组构造(指定长度)
|
| NEFORCE_CONSTEXPR20 basic_string & | operator= (const_pointer str) |
| | C风格字符串赋值运算符
|
| template<typename Iterator, enable_if_t<!is_convertible_v< Iterator, value_type >, int > = 0> |
| NEFORCE_CONSTEXPR20 | basic_string (Iterator first, Iterator last) |
| | 从迭代器范围构造
|
| NEFORCE_CONSTEXPR20 | basic_string (std::initializer_list< value_type > ilist) |
| | 从初始化列表构造
|
| NEFORCE_CONSTEXPR20 basic_string & | operator= (std::initializer_list< value_type > ilist) |
| | 初始化列表赋值运算符
|
|
NEFORCE_CONSTEXPR20 | ~basic_string () |
| | 析构函数
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 iterator | begin () noexcept |
| | 获取起始迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 iterator | end () noexcept |
| | 获取结束迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_iterator | begin () const noexcept |
| | 获取常量起始迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_iterator | end () const noexcept |
| | 获取常量结束迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_iterator | cbegin () const noexcept |
| | 获取常量起始迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_iterator | cend () const noexcept |
| | 获取常量结束迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 reverse_iterator | rbegin () noexcept |
| | 获取反向起始迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 reverse_iterator | rend () noexcept |
| | 获取反向结束迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reverse_iterator | rbegin () const noexcept |
| | 获取常量反向起始迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reverse_iterator | rend () const noexcept |
| | 获取常量反向结束迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reverse_iterator | crbegin () const noexcept |
| | 获取常量反向起始迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reverse_iterator | crend () const noexcept |
| | 获取常量反向结束迭代器
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | size () const noexcept |
| | 获取字符数
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | max_size () const noexcept |
| | 获取最大可能大小
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | capacity () const noexcept |
| | 获取容量
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | length () const noexcept |
| | 获取字符串长度
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | empty () const noexcept |
| | 检查是否为空
|
| NEFORCE_CONSTEXPR20 void | reserve (const size_type n) |
| | 预留容量
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 reference | operator[] (const size_type n) noexcept |
| | 下标访问操作符
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reference | operator[] (const size_type n) const noexcept |
| | 常量下标访问操作符
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 reference | at (const size_type n) noexcept |
| | 带边界检查的访问
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reference | at (const size_type n) const noexcept |
| | 带边界检查的常量访问
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 reference | front () noexcept |
| | 访问第一个字符
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reference | front () const noexcept |
| | 常量访问第一个字符
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 reference | back () noexcept |
| | 访问最后一个字符
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_reference | back () const noexcept |
| | 常量访问最后一个字符
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 pointer | data () noexcept |
| | 获取数据指针
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 const_pointer | data () const noexcept |
| | 获取常量数据指针
|
| NEFORCE_CONSTEXPR20 iterator | insert (iterator position, value_type value) |
| | 插入单个字符
|
| NEFORCE_CONSTEXPR20 basic_string & | insert (size_type position, size_type n, value_type value) |
| | 在指定位置插入多个相同字符
|
| template<typename Iterator> |
| NEFORCE_CONSTEXPR20 iterator | insert (iterator position, Iterator first, Iterator last) |
| | 插入迭代器范围
|
| NEFORCE_CONSTEXPR20 void | push_back (value_type value) |
| | 在末尾插入字符
|
|
NEFORCE_CONSTEXPR20 void | pop_back () noexcept |
| | 删除末尾字符
|
| NEFORCE_CONSTEXPR20 basic_string & | append (size_type n, value_type value) |
| | 追加多个相同字符
|
| NEFORCE_CONSTEXPR20 basic_string & | append (value_type value) |
| | 追加单个字符
|
| NEFORCE_CONSTEXPR20 basic_string & | append (const basic_string &other, size_type position, size_type n) |
| | 追加另一个字符串的子串
|
| NEFORCE_CONSTEXPR20 basic_string & | append (const basic_string &other) |
| | 追加另一个字符串
|
| NEFORCE_CONSTEXPR20 basic_string & | append (const basic_string &other, size_type position) |
| | 追加另一个字符串的子串
|
| NEFORCE_CONSTEXPR20 basic_string & | append (basic_string &&other, size_type position, size_type n) |
| | 追加移动字符串的子串
|
| NEFORCE_CONSTEXPR20 basic_string & | append (basic_string &&other) |
| | 追加移动字符串
|
| NEFORCE_CONSTEXPR20 basic_string & | append (basic_string &&other, size_type position) |
| | 追加移动字符串的子串
|
| NEFORCE_CONSTEXPR20 basic_string & | append (view_type view, size_type n) |
| | 追加字符串视图的指定长度
|
| NEFORCE_CONSTEXPR20 basic_string & | append (view_type view) |
| | 追加字符串视图
|
| NEFORCE_CONSTEXPR20 basic_string & | append (const_pointer str, size_type n) |
| | 追加字符数组的指定长度
|
| NEFORCE_CONSTEXPR20 basic_string & | append (const_pointer str) |
| | 追加C风格字符串
|
| template<typename Iterator, enable_if_t< is_iter_v< Iterator >, int > = 0> |
| NEFORCE_CONSTEXPR20 basic_string & | append (Iterator first, Iterator last) |
| | 追加迭代器范围
|
| NEFORCE_CONSTEXPR20 basic_string & | append (std::initializer_list< value_type > ilist) |
| | 追加初始化列表
|
|
NEFORCE_CONSTEXPR20 basic_string & | operator+= (const basic_string &other) |
| | 追加另一个字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | operator+= (basic_string &&other) |
| | 追加移动字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | operator+= (const value_type value) |
| | 追加单个字符
|
|
NEFORCE_CONSTEXPR20 basic_string & | operator+= (const_pointer str) |
| | 追加C风格字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | operator+= (std::initializer_list< value_type > ilist) |
| | 追加初始化列表
|
|
NEFORCE_CONSTEXPR20 basic_string & | operator+= (view_type view) |
| | 追加字符串视图
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (const basic_string &other) |
| | 赋值另一个字符串
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (basic_string &&other) |
| | 赋值移动字符串
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (const_pointer str) |
| | 赋值C风格字符串
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (const_pointer str, const size_type n) |
| | 赋值字符数组的指定长度
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (const size_type n, value_type value) |
| | 赋值多个相同字符
|
| template<typename Iterator> |
| NEFORCE_CONSTEXPR20 basic_string & | assign (Iterator first, Iterator last) |
| | 赋值迭代器范围
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (std::initializer_list< value_type > ilist) |
| | 赋值初始化列表
|
| NEFORCE_CONSTEXPR20 basic_string & | assign (const view_type &view) |
| | 赋值字符串视图
|
| NEFORCE_CONSTEXPR20 iterator | erase (iterator position) noexcept |
| | 删除指定位置的字符
|
| NEFORCE_CONSTEXPR20 basic_string & | erase (size_type position=0, size_type n=npos) noexcept |
| | 删除指定范围内的字符
|
| NEFORCE_CONSTEXPR20 iterator | erase (iterator first, const size_type n) noexcept |
| | 删除指定数量的字符
|
| NEFORCE_CONSTEXPR20 iterator | erase (iterator first, iterator last) noexcept |
| | 删除迭代器范围
|
| NEFORCE_CONSTEXPR20 void | resize (size_type n, value_type value) |
| | 调整大小
|
| NEFORCE_CONSTEXPR20 void | resize (const size_type n) |
| | 调整大小(默认填充0)
|
|
NEFORCE_CONSTEXPR20 void | clear () noexcept |
| | 清空字符串
|
|
NEFORCE_CONSTEXPR20 void | shrink_to_fit () |
| | 收缩容量以适应当前大小
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 basic_string | repeat (size_type n) const noexcept |
| | 重复当前字符串n次
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 basic_string | substr (const size_type off=0, size_type count=npos) const |
| | 获取子串
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 view_type | view () const noexcept |
| | 获取字符串视图
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 view_type | view (const size_type off, size_type count=npos) const noexcept |
| | 获取子串视图
|
| NEFORCE_CONSTEXPR20 size_type | copy (pointer dest, const size_type count, size_type position=0) const |
| | 复制字符到目标缓冲区
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const basic_string &other) const noexcept |
| | 比较另一个字符串
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const size_type off, const size_type n, const basic_string &other) const |
| | 比较子串与另一个字符串
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const size_type off, const size_type n, const basic_string &other, const size_type roff, const size_type count) const |
| | 比较子串与另一个字符串的子串
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const CharT *str) const noexcept |
| | 比较C风格字符串
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const view_type &view) const noexcept |
| | 比较字符串视图
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const size_type off, const size_type n, const CharT *str) const |
| | 比较子串与C风格字符串
|
| NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 int | compare (const size_type off, const size_type n, const CharT *str, size_type count) const |
| | 比较子串与指定长度的字符数组
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (const size_type position, const size_type n, const basic_string &other) |
| | 替换子串为另一个字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (iterator first, iterator last, const basic_string &other) |
| | 替换迭代器范围为另一个字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (const size_type position, const size_type n, const_pointer str) |
| | 替换子串为C风格字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (iterator first, iterator last, const_pointer str) |
| | 替换迭代器范围为C风格字符串
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (const size_type position, const size_type n1, const_pointer str, const size_type n2) |
| | 替换子串为指定长度的字符数组
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (iterator first, iterator last, const_pointer str, const size_type n) |
| | 替换迭代器范围为指定长度的字符数组
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (const size_type position, const size_type n1, const size_type n2, const value_type value) |
| | 替换子串为多个相同字符
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (iterator first, iterator last, const size_type n, const value_type value) |
| | 替换迭代器范围为多个相同字符
|
|
NEFORCE_CONSTEXPR20 basic_string & | replace (const size_type position1, const size_type n1, const basic_string &str, const size_type position2, const size_type n2=npos) |
| | 替换子串为另一个字符串的子串
|
|
template<typename Iterator> |
| NEFORCE_CONSTEXPR20 basic_string & | replace (iterator first, iterator last, Iterator first2, Iterator last2) |
| | 替换迭代器范围为另一个迭代器范围
|
|
NEFORCE_CONSTEXPR20 void | reverse () noexcept |
| | 反转字符串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find (const basic_string &other, const size_type n=0) const noexcept |
| | 查找子串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find (const CharT value, const size_type n=0) const noexcept |
| | 查找字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find (const CharT *str, const size_type off, const size_type count) const noexcept |
| | 查找指定长度的子串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find (const CharT *str, const size_type off=0) const noexcept |
| | 查找C风格字符串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find (const view_type &view, const size_type off, const size_type count) const noexcept |
| | 查找指定长度的字符串视图
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find (const view_type &view, const size_type off=0) const noexcept |
| | 查找字符串视图
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | rfind (const basic_string &other, const size_type off=npos) const noexcept |
| | 从后向前查找子串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | rfind (const CharT value, const size_type n=npos) const noexcept |
| | 从后向前查找字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | rfind (const CharT *str, const size_type off, const size_type n) const noexcept |
| | 从后向前查找指定长度的子串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | rfind (const CharT *str, const size_type off=npos) const noexcept |
| | 从后向前查找C风格字符串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | rfind (const view_type &view, const size_type off, const size_type count) const noexcept |
| | 从后向前查找指定长度的字符串视图
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | rfind (const view_type &view, const size_type off=0) const noexcept |
| | 从后向前查找字符串视图
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_of (const basic_string &other, const size_type off=0) const noexcept |
| | 查找第一个出现在字符集合中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_of (const CharT value, const size_type off=0) const noexcept |
| | 查找第一个等于指定字符的位置
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| | 查找第一个出现在指定字符数组中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_of (const CharT *str, const size_type off=0) const noexcept |
| | 查找第一个出现在C风格字符串中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| | 查找第一个出现在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_of (const view_type &view, const size_type off=0) const noexcept |
| | 查找第一个出现在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_of (const basic_string &other, const size_type off=npos) const noexcept |
| | 查找最后一个出现在字符集合中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_of (const CharT value, const size_type off=npos) const noexcept |
| | 查找最后一个等于指定字符的位置
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| | 查找最后一个出现在指定字符数组中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_of (const CharT *str, const size_type off=npos) const noexcept |
| | 查找最后一个出现在C风格字符串中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| | 查找最后一个出现在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_of (const view_type &view, const size_type off=npos) const noexcept |
| | 查找最后一个出现在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_not_of (const basic_string &other, const size_type off=0) const noexcept |
| | 查找第一个不在字符集合中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_not_of (const CharT value, const size_type off=0) const noexcept |
| | 查找第一个不等于指定字符的位置
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_not_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| | 查找第一个不在指定字符数组中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_not_of (const CharT *str, const size_type off=0) const noexcept |
| | 查找第一个不在C风格字符串中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_not_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| | 查找第一个不在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_first_not_of (const view_type &view, const size_type off=0) const noexcept |
| | 查找第一个不在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_not_of (const basic_string &other, const size_type off=npos) const noexcept |
| | 查找最后一个不在字符集合中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_not_of (const CharT value, const size_type off=npos) const noexcept |
| | 查找最后一个不等于指定字符的位置
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_not_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| | 查找最后一个不在指定字符数组中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_not_of (const CharT *str, const size_type off=npos) const noexcept |
| | 查找最后一个不在C风格字符串中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_not_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| | 查找最后一个不在字符串视图中的字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_type | find_last_not_of (const view_type &view, const size_type off=npos) const noexcept |
| | 查找最后一个不在字符串视图中的字符
|
| NEFORCE_CONSTEXPR20 size_type | count (value_type value, const size_type position=0) const noexcept |
| | 统计指定字符出现的次数
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | starts_with (const basic_string &other) const noexcept |
| | 检查是否以另一个字符串开头
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | starts_with (view_type view) const noexcept |
| | 检查是否以字符串视图开头
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | starts_with (const value_type value) const noexcept |
| | 检查是否以指定字符开头
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | starts_with (const_pointer str) const noexcept |
| | 检查是否以C风格字符串开头
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | ends_with (const basic_string &other) const noexcept |
| | 检查是否以另一个字符串结尾
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | ends_with (view_type view) const noexcept |
| | 检查是否以字符串视图结尾
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | ends_with (value_type value) const noexcept |
| | 检查是否以指定字符结尾
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | ends_with (const_pointer str) const noexcept |
| | 检查是否以C风格字符串结尾
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | contains (const basic_string &other) const noexcept |
| | 检查是否包含另一个字符串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | contains (view_type view) const noexcept |
| | 检查是否包含字符串视图
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | contains (value_type value) const noexcept |
| | 检查是否包含指定字符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | contains (const_pointer str) const noexcept |
| | 检查是否包含C风格字符串
|
| NEFORCE_CONSTEXPR20 basic_string & | trim_left () noexcept |
| | 去除左侧空白字符
|
| NEFORCE_CONSTEXPR20 basic_string & | trim_right () noexcept |
| | 去除右侧空白字符
|
| NEFORCE_CONSTEXPR20 basic_string & | trim () noexcept |
| | 去除两侧空白字符
|
| template<typename Pred> |
| NEFORCE_CONSTEXPR20 basic_string & | trim_left_if (Pred pred) |
| | 根据谓词去除左侧字符
|
| template<typename Pred> |
| NEFORCE_CONSTEXPR20 basic_string & | trim_right_if (Pred pred) |
| | 根据谓词去除右侧字符
|
| template<typename Predicate> |
| NEFORCE_CONSTEXPR20 basic_string & | trim_if (Predicate pred) |
| | 根据谓词去除两侧字符
|
| NEFORCE_CONSTEXPR20 bool | equal_to (const basic_string &other) const noexcept |
| | 相等比较
|
| NEFORCE_CONSTEXPR20 bool | equal_to (const view_type view) const noexcept |
| | 与字符串视图相等比较
|
| NEFORCE_CONSTEXPR20 bool | equal_to (const CharT *str) const noexcept |
| | 与C风格字符串相等比较
|
|
NEFORCE_CONSTEXPR20 basic_string & | lowercase () noexcept(noexcept(_NEFORCE transform(begin(), end(), begin(), _NEFORCE to_lowercase< CharT >))) |
| | 转换为小写
|
|
NEFORCE_CONSTEXPR20 basic_string & | uppercase () noexcept(noexcept(_NEFORCE transform(begin(), end(), begin(), _NEFORCE to_uppercase< CharT >))) |
| | 转换为大写
|
| NEFORCE_CONSTEXPR20 void | swap (basic_string &other) noexcept |
| | 交换两个字符串
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | operator== (const basic_string &rhs) const noexcept |
| | 相等比较操作符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 bool | operator< (const basic_string &rhs) const noexcept |
| | 小于比较操作符
|
|
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 size_t | to_hash () const noexcept |
| | 计算哈希值
|
| NEFORCE_NODISCARD constexpr bool | operator== (const T &rhs) const noexcept(noexcept(derived()==rhs)) |
| | 相等比较运算符
|
| NEFORCE_NODISCARD constexpr bool | operator!= (const T &rhs) const noexcept(noexcept(!(*this==rhs))) |
| | 不等比较运算符
|
| NEFORCE_NODISCARD constexpr bool | operator< (const T &rhs) const noexcept(noexcept(derived()< rhs)) |
| | 小于比较运算符
|
| NEFORCE_NODISCARD constexpr bool | operator> (const T &rhs) const noexcept(noexcept(rhs< derived())) |
| | 大于比较运算符
|
| NEFORCE_NODISCARD constexpr bool | operator<= (const T &rhs) const noexcept(noexcept(!(derived() > rhs))) |
| | 小于等于比较运算符
|
| NEFORCE_NODISCARD constexpr bool | operator>= (const T &rhs) const noexcept(noexcept(!(derived()< rhs))) |
| | 大于等于比较运算符
|
| NEFORCE_NODISCARD constexpr size_t | to_hash () const noexcept(noexcept(derived().to_hash())) |
| | 获取对象的哈希值
|