|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
基础字符串模板 更多...
#include <basic_string.hpp>
Public 类型 | |
| using | value_type = CharT |
| 值类型 | |
| using | pointer = CharT* |
| 指针类型 | |
| using | reference = CharT& |
| 引用类型 | |
| using | const_pointer = const CharT* |
| 常量指针类型 | |
| using | const_reference = const CharT& |
| 常量引用类型 | |
| using | size_type = size_t |
| 大小类型 | |
| using | difference_type = ptrdiff_t |
| 差值类型 | |
| using | iterator = basic_string_iterator<false, basic_string> |
| 迭代器类型 | |
| using | const_iterator = basic_string_iterator<true, basic_string> |
| 常量迭代器类型 | |
| using | reverse_iterator = _NEFORCE reverse_iterator<iterator> |
| 反向迭代器类型 | |
| using | const_reverse_iterator = _NEFORCE reverse_iterator<const_iterator> |
| 常量反向迭代器类型 | |
| using | traits_type = Traits |
| 字符特征类型 | |
| using | view_type = basic_string_view<CharT, Traits> |
| 字符串视图类型 | |
| using | allocator_type = Alloc |
| 分配器类型 | |
Public 成员函数 | |
| constexpr | basic_string () |
| 默认构造函数 | |
| constexpr | basic_string (size_type n) |
| 构造函数,指定大小 | |
| constexpr | basic_string (size_type n, int32_t value) |
| 构造函数,指定大小和32位整数值 | |
| constexpr | basic_string (size_type n, int64_t value) |
| 构造函数,指定大小和64位整数值 | |
| constexpr | basic_string (size_type n, value_type value) |
| 构造函数,指定大小和填充字符 | |
| constexpr | basic_string (const basic_string &other) |
| 拷贝构造函数 | |
| constexpr basic_string & | operator= (const basic_string &other) |
| 拷贝赋值运算符 | |
| constexpr | basic_string (basic_string &&other) noexcept |
| 移动构造函数 | |
| constexpr basic_string & | operator= (basic_string &&other) noexcept |
| 移动赋值运算符 | |
| constexpr | basic_string (view_type view) |
| 从字符串视图构造 | |
| constexpr | basic_string (view_type view, const size_type n) |
| 从字符串视图构造(指定长度) | |
| constexpr basic_string & | operator= (view_type view) |
| 字符串视图赋值运算符 | |
| constexpr | basic_string (const basic_string &other, size_type position) |
| 从子串构造 | |
| constexpr | basic_string (const basic_string &other, size_type position, size_type n) |
| 从子串构造(指定长度) | |
| constexpr | basic_string (const_pointer str) |
| 从C风格字符串构造 | |
| constexpr | basic_string (const_pointer str, const size_type n) |
| 从字符数组构造(指定长度) | |
| constexpr basic_string & | operator= (const_pointer str) |
| C风格字符串赋值运算符 | |
| template<typename Iterator, enable_if_t<!is_convertible_v< Iterator, value_type >, int > = 0> | |
| constexpr | basic_string (Iterator first, Iterator last) |
| 从迭代器范围构造 | |
| constexpr | basic_string (std::initializer_list< value_type > ilist) |
| 从初始化列表构造 | |
| constexpr basic_string & | operator= (std::initializer_list< value_type > ilist) |
| 初始化列表赋值运算符 | |
| constexpr | ~basic_string () |
| 析构函数 | |
| constexpr iterator | begin () noexcept |
| 获取起始迭代器 | |
| constexpr iterator | end () noexcept |
| 获取结束迭代器 | |
| constexpr const_iterator | begin () const noexcept |
| 获取常量起始迭代器 | |
| constexpr const_iterator | end () const noexcept |
| 获取常量结束迭代器 | |
| constexpr const_iterator | cbegin () const noexcept |
| 获取常量起始迭代器 | |
| constexpr const_iterator | cend () const noexcept |
| 获取常量结束迭代器 | |
| constexpr reverse_iterator | rbegin () noexcept |
| 获取反向起始迭代器 | |
| constexpr reverse_iterator | rend () noexcept |
| 获取反向结束迭代器 | |
| constexpr const_reverse_iterator | rbegin () const noexcept |
| 获取常量反向起始迭代器 | |
| constexpr const_reverse_iterator | rend () const noexcept |
| 获取常量反向结束迭代器 | |
| constexpr const_reverse_iterator | crbegin () const noexcept |
| 获取常量反向起始迭代器 | |
| constexpr const_reverse_iterator | crend () const noexcept |
| 获取常量反向结束迭代器 | |
| constexpr size_type | size () const noexcept |
| 获取字符数 | |
| constexpr size_type | max_size () const noexcept |
| 获取最大可能大小 | |
| constexpr size_type | capacity () const noexcept |
| 获取容量 | |
| constexpr size_type | length () const noexcept |
| 获取字符串长度 | |
| constexpr bool | empty () const noexcept |
| 检查是否为空 | |
| constexpr void | reserve (const size_type n) |
| 预留容量 | |
| constexpr reference | operator[] (const size_type n) noexcept |
| 下标访问操作符 | |
| constexpr const_reference | operator[] (const size_type n) const noexcept |
| 常量下标访问操作符 | |
| constexpr reference | at (const size_type n) noexcept |
| 带边界检查的访问 | |
| constexpr const_reference | at (const size_type n) const noexcept |
| 带边界检查的常量访问 | |
| constexpr reference | front () noexcept |
| 访问第一个字符 | |
| constexpr const_reference | front () const noexcept |
| 常量访问第一个字符 | |
| constexpr reference | back () noexcept |
| 访问最后一个字符 | |
| constexpr const_reference | back () const noexcept |
| 常量访问最后一个字符 | |
| constexpr pointer | data () noexcept |
| 获取数据指针 | |
| constexpr const_pointer | data () const noexcept |
| 获取常量数据指针 | |
| constexpr iterator | insert (iterator position, value_type value) |
| 插入单个字符 | |
| constexpr basic_string & | insert (size_type position, size_type n, value_type value) |
| 在指定位置插入多个相同字符 | |
| template<typename Iterator> | |
| constexpr iterator | insert (iterator position, Iterator first, Iterator last) |
| 插入迭代器范围 | |
| constexpr void | push_back (value_type value) |
| 在末尾插入字符 | |
| constexpr void | pop_back () noexcept |
| 删除末尾字符 | |
| constexpr basic_string & | append (size_type n, value_type value) |
| 追加多个相同字符 | |
| constexpr basic_string & | append (value_type value) |
| 追加单个字符 | |
| constexpr basic_string & | append (const basic_string &other, size_type position, size_type n) |
| 追加另一个字符串的子串 | |
| constexpr basic_string & | append (const basic_string &other) |
| 追加另一个字符串 | |
| constexpr basic_string & | append (const basic_string &other, size_type position) |
| 追加另一个字符串的子串 | |
| constexpr basic_string & | append (basic_string &&other, size_type position, size_type n) |
| 追加移动字符串的子串 | |
| constexpr basic_string & | append (basic_string &&other) |
| 追加移动字符串 | |
| constexpr basic_string & | append (basic_string &&other, size_type position) |
| 追加移动字符串的子串 | |
| constexpr basic_string & | append (view_type view, size_type n) |
| 追加字符串视图的指定长度 | |
| constexpr basic_string & | append (view_type view) |
| 追加字符串视图 | |
| constexpr basic_string & | append (const_pointer str, size_type n) |
| 追加字符数组的指定长度 | |
| constexpr basic_string & | append (const_pointer str) |
| 追加C风格字符串 | |
| template<typename Iterator, enable_if_t< is_iter_v< Iterator >, int > = 0> | |
| constexpr basic_string & | append (Iterator first, Iterator last) |
| 追加迭代器范围 | |
| constexpr basic_string & | append (std::initializer_list< value_type > ilist) |
| 追加初始化列表 | |
| constexpr basic_string & | operator+= (const basic_string &other) |
| 追加另一个字符串 | |
| constexpr basic_string & | operator+= (basic_string &&other) |
| 追加移动字符串 | |
| constexpr basic_string & | operator+= (const value_type value) |
| 追加单个字符 | |
| constexpr basic_string & | operator+= (const_pointer str) |
| 追加C风格字符串 | |
| constexpr basic_string & | operator+= (std::initializer_list< value_type > ilist) |
| 追加初始化列表 | |
| constexpr basic_string & | operator+= (view_type view) |
| 追加字符串视图 | |
| constexpr basic_string & | assign (const basic_string &other) |
| 赋值另一个字符串 | |
| constexpr basic_string & | assign (basic_string &&other) |
| 赋值移动字符串 | |
| constexpr basic_string & | assign (const_pointer str) |
| 赋值C风格字符串 | |
| constexpr basic_string & | assign (const_pointer str, const size_type n) |
| 赋值字符数组的指定长度 | |
| constexpr basic_string & | assign (const size_type n, value_type value) |
| 赋值多个相同字符 | |
| template<typename Iterator> | |
| constexpr basic_string & | assign (Iterator first, Iterator last) |
| 赋值迭代器范围 | |
| constexpr basic_string & | assign (std::initializer_list< value_type > ilist) |
| 赋值初始化列表 | |
| constexpr basic_string & | assign (const view_type &view) |
| 赋值字符串视图 | |
| constexpr iterator | erase (iterator position) noexcept |
| 删除指定位置的字符 | |
| constexpr basic_string & | erase (size_type position=0, size_type n=npos) noexcept |
| 删除指定范围内的字符 | |
| constexpr iterator | erase (iterator first, const size_type n) noexcept |
| 删除指定数量的字符 | |
| constexpr iterator | erase (iterator first, iterator last) noexcept |
| 删除迭代器范围 | |
| constexpr void | resize (size_type n, value_type value) |
| 调整大小 | |
| constexpr void | resize (const size_type n) |
| 调整大小(默认填充0) | |
| constexpr void | clear () noexcept |
| 清空字符串 | |
| constexpr void | shrink_to_fit () |
| 收缩容量以适应当前大小 | |
| constexpr basic_string | repeat (size_type n) const noexcept |
| 重复当前字符串n次 | |
| constexpr basic_string | substr (const size_type off=0, const size_type count=npos) const |
| 获取子串 | |
| constexpr basic_string | head (const size_type count=npos) const |
| 获取头部子串 | |
| constexpr basic_string | tail (const size_type off=0) const |
| 获取尾部子串 | |
| constexpr view_type | view () const noexcept |
| 获取字符串视图 | |
| constexpr view_type | view (const size_type off, size_type count=npos) const noexcept |
| 获取子串视图 | |
| constexpr size_type | copy (pointer dest, const size_type count, size_type position=0) const |
| 复制字符到目标缓冲区 | |
| constexpr int | compare (const basic_string &other) const noexcept |
| 比较另一个字符串 | |
| constexpr int | compare (const size_type off, const size_type n, const basic_string &other) const |
| 比较子串与另一个字符串 | |
| constexpr int | compare (const size_type off, const size_type n, const basic_string &other, const size_type roff, const size_type count) const |
| 比较子串与另一个字符串的子串 | |
| constexpr int | compare (const CharT *str) const noexcept |
| 比较C风格字符串 | |
| constexpr int | compare (const view_type &view) const noexcept |
| 比较字符串视图 | |
| constexpr int | compare (const size_type off, const size_type n, const CharT *str) const |
| 比较子串与C风格字符串 | |
| constexpr int | compare (const size_type off, const size_type n, const CharT *str, size_type count) const |
| 比较子串与指定长度的字符数组 | |
| constexpr int | compare_ignore_case (const view_type view) const noexcept |
| 忽略大小写三路比较 | |
| constexpr int | compare_ignore_case (const_pointer str) const noexcept |
| 忽略大小写比较另一个字符串 | |
| constexpr int | compare_ignore_case (const basic_string &str) const noexcept |
| 忽略大小写与C风格字符串三路比较 | |
| constexpr basic_string & | replace (const size_type position, const size_type n, const basic_string &other) |
| 替换子串为另一个字符串 | |
| constexpr basic_string & | replace (iterator first, iterator last, const basic_string &other) |
| 替换迭代器范围为另一个字符串 | |
| constexpr basic_string & | replace (const size_type position, const size_type n, const_pointer str) |
| 替换子串为C风格字符串 | |
| constexpr basic_string & | replace (iterator first, iterator last, const_pointer str) |
| 替换迭代器范围为C风格字符串 | |
| constexpr basic_string & | replace (const size_type position, const size_type n1, const_pointer str, const size_type n2) |
| 替换子串为指定长度的字符数组 | |
| constexpr basic_string & | replace (iterator first, iterator last, const_pointer str, const size_type n) |
| 替换迭代器范围为指定长度的字符数组 | |
| constexpr basic_string & | replace (const size_type position, const size_type n1, const size_type n2, const value_type value) |
| 替换子串为多个相同字符 | |
| constexpr basic_string & | replace (iterator first, iterator last, const size_type n, const value_type value) |
| 替换迭代器范围为多个相同字符 | |
| constexpr 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> | |
| constexpr basic_string & | replace (iterator first, iterator last, Iterator first2, Iterator last2) |
| 替换迭代器范围为另一个迭代器范围 | |
| constexpr void | reverse () noexcept |
| 反转字符串 | |
| constexpr size_type | find (const basic_string &other, const size_type n=0) const noexcept |
| 查找子串 | |
| constexpr size_type | find (const CharT value, const size_type n=0) const noexcept |
| 查找字符 | |
| constexpr size_type | find (const CharT *str, const size_type off, const size_type count) const noexcept |
| 查找指定长度的子串 | |
| constexpr size_type | find (const CharT *str, const size_type off=0) const noexcept |
| 查找C风格字符串 | |
| constexpr size_type | find (const view_type &view, const size_type off, const size_type count) const noexcept |
| 查找指定长度的字符串视图 | |
| constexpr size_type | find (const view_type &view, const size_type off=0) const noexcept |
| 查找字符串视图 | |
| constexpr size_type | rfind (const basic_string &other, const size_type off=npos) const noexcept |
| 从后向前查找子串 | |
| constexpr size_type | rfind (const CharT value, const size_type n=npos) const noexcept |
| 从后向前查找字符 | |
| constexpr size_type | rfind (const CharT *str, const size_type off, const size_type n) const noexcept |
| 从后向前查找指定长度的子串 | |
| constexpr size_type | rfind (const CharT *str, const size_type off=npos) const noexcept |
| 从后向前查找C风格字符串 | |
| constexpr size_type | rfind (const view_type &view, const size_type off, const size_type count) const noexcept |
| 从后向前查找指定长度的字符串视图 | |
| constexpr size_type | rfind (const view_type &view, const size_type off=npos) const noexcept |
| 从后向前查找字符串视图 | |
| constexpr size_type | find_first_of (const basic_string &other, const size_type off=0) const noexcept |
| 查找第一个出现在字符集合中的字符 | |
| constexpr size_type | find_first_of (const CharT value, const size_type off=0) const noexcept |
| 查找第一个等于指定字符的位置 | |
| constexpr size_type | find_first_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| 查找第一个出现在指定字符数组中的字符 | |
| constexpr size_type | find_first_of (const CharT *str, const size_type off=0) const noexcept |
| 查找第一个出现在C风格字符串中的字符 | |
| constexpr size_type | find_first_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| 查找第一个出现在字符串视图中的字符 | |
| constexpr size_type | find_first_of (const view_type &view, const size_type off=0) const noexcept |
| 查找第一个出现在字符串视图中的字符 | |
| constexpr size_type | find_last_of (const basic_string &other, const size_type off=npos) const noexcept |
| 查找最后一个出现在字符集合中的字符 | |
| constexpr size_type | find_last_of (const CharT value, const size_type off=npos) const noexcept |
| 查找最后一个等于指定字符的位置 | |
| constexpr size_type | find_last_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| 查找最后一个出现在指定字符数组中的字符 | |
| constexpr size_type | find_last_of (const CharT *str, const size_type off=npos) const noexcept |
| 查找最后一个出现在C风格字符串中的字符 | |
| constexpr size_type | find_last_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| 查找最后一个出现在字符串视图中的字符 | |
| constexpr size_type | find_last_of (const view_type &view, const size_type off=npos) const noexcept |
| 查找最后一个出现在字符串视图中的字符 | |
| constexpr size_type | find_first_not_of (const basic_string &other, const size_type off=0) const noexcept |
| 查找第一个不在字符集合中的字符 | |
| constexpr size_type | find_first_not_of (const CharT value, const size_type off=0) const noexcept |
| 查找第一个不等于指定字符的位置 | |
| constexpr size_type | find_first_not_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| 查找第一个不在指定字符数组中的字符 | |
| constexpr size_type | find_first_not_of (const CharT *str, const size_type off=0) const noexcept |
| 查找第一个不在C风格字符串中的字符 | |
| constexpr size_type | find_first_not_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| 查找第一个不在字符串视图中的字符 | |
| constexpr size_type | find_first_not_of (const view_type &view, const size_type off=0) const noexcept |
| 查找第一个不在字符串视图中的字符 | |
| constexpr size_type | find_last_not_of (const basic_string &other, const size_type off=npos) const noexcept |
| 查找最后一个不在字符集合中的字符 | |
| constexpr size_type | find_last_not_of (const CharT value, const size_type off=npos) const noexcept |
| 查找最后一个不等于指定字符的位置 | |
| constexpr size_type | find_last_not_of (const CharT *str, const size_type off, const size_type n) const noexcept |
| 查找最后一个不在指定字符数组中的字符 | |
| constexpr size_type | find_last_not_of (const CharT *str, const size_type off=npos) const noexcept |
| 查找最后一个不在C风格字符串中的字符 | |
| constexpr size_type | find_last_not_of (const view_type &view, const size_type off, const size_type n) const noexcept |
| 查找最后一个不在字符串视图中的字符 | |
| constexpr size_type | find_last_not_of (const view_type &view, const size_type off=npos) const noexcept |
| 查找最后一个不在字符串视图中的字符 | |
| constexpr size_type | count (value_type value, const size_type position=0) const noexcept |
| 统计指定字符出现的次数 | |
| constexpr bool | starts_with (const basic_string &other) const noexcept |
| 检查是否以另一个字符串开头 | |
| constexpr bool | starts_with (view_type view) const noexcept |
| 检查是否以字符串视图开头 | |
| constexpr bool | starts_with (const value_type value) const noexcept |
| 检查是否以指定字符开头 | |
| constexpr bool | starts_with (const_pointer str) const noexcept |
| 检查是否以C风格字符串开头 | |
| constexpr bool | ends_with (const basic_string &other) const noexcept |
| 检查是否以另一个字符串结尾 | |
| constexpr bool | ends_with (view_type view) const noexcept |
| 检查是否以字符串视图结尾 | |
| constexpr bool | ends_with (value_type value) const noexcept |
| 检查是否以指定字符结尾 | |
| constexpr bool | ends_with (const_pointer str) const noexcept |
| 检查是否以C风格字符串结尾 | |
| constexpr bool | contains (const basic_string &other) const noexcept |
| 检查是否包含另一个字符串 | |
| constexpr bool | contains (view_type view) const noexcept |
| 检查是否包含字符串视图 | |
| constexpr bool | contains (value_type value) const noexcept |
| 检查是否包含指定字符 | |
| constexpr bool | contains (const_pointer str) const noexcept |
| 检查是否包含C风格字符串 | |
| constexpr basic_string & | trim_left () noexcept |
| 去除左侧空白字符 | |
| constexpr basic_string & | trim_right () noexcept |
| 去除右侧空白字符 | |
| constexpr basic_string & | trim () noexcept |
| 去除两侧空白字符 | |
| template<typename Pred> | |
| constexpr basic_string & | trim_left_if (Pred pred) |
| 根据谓词去除左侧字符 | |
| template<typename Pred> | |
| constexpr basic_string & | trim_right_if (Pred pred) |
| 根据谓词去除右侧字符 | |
| template<typename Predicate> | |
| constexpr basic_string & | trim_if (Predicate pred) |
| 根据谓词去除两侧字符 | |
| constexpr bool | equal_to (const basic_string &other) const noexcept |
| 相等比较 | |
| constexpr bool | equal_to (const view_type view) const noexcept |
| 与字符串视图相等比较 | |
| constexpr bool | equal_to (const CharT *str) const noexcept |
| 与C风格字符串相等比较 | |
| constexpr basic_string & | lowercase () noexcept(noexcept(_NEFORCE transform(begin(), end(), begin(), _NEFORCE to_lowercase< CharT >))) |
| 转换为小写 | |
| constexpr basic_string & | uppercase () noexcept(noexcept(_NEFORCE transform(begin(), end(), begin(), _NEFORCE to_uppercase< CharT >))) |
| 转换为大写 | |
| constexpr void | swap (basic_string &other) noexcept |
| 交换两个字符串 | |
| constexpr bool | less_than (const basic_string &rhs) const noexcept |
| 小于比较操作符 | |
| constexpr size_t | to_hash () const noexcept |
| 计算哈希值 | |
| Public 成员函数 继承自 icomparable< T > | |
| constexpr bool | operator== (const T &rhs) const noexcept(noexcept(derived().equal_to(rhs))) |
| 相等比较运算符 | |
| constexpr bool | operator!= (const T &rhs) const noexcept(noexcept(!(derived().equal_to(rhs)))) |
| 不等比较运算符 | |
| constexpr bool | operator< (const T &rhs) const noexcept(noexcept(derived().less_than(rhs))) |
| 小于比较运算符 | |
| constexpr bool | operator> (const T &rhs) const noexcept(noexcept(rhs.less_than(derived()))) |
| 大于比较运算符 | |
| constexpr bool | operator<= (const T &rhs) const noexcept(noexcept(!(rhs.less_than(derived())))) |
| 小于等于比较运算符 | |
| constexpr bool | operator>= (const T &rhs) const noexcept(noexcept(!(derived().less_than(rhs)))) |
| 大于等于比较运算符 | |
| Public 成员函数 继承自 ihashable< T > | |
| constexpr size_t | to_ihash () const noexcept(noexcept(derived().to_hash())) |
| 获取对象的哈希值 | |
静态 Public 属性 | |
| static constexpr size_type | npos = string_view::npos |
| 特殊值,表示未找到或"直到末尾" | |
基础字符串模板
| CharT | 字符类型 |
| Traits | 字符特征类型,默认为char_traits<CharT> |
| Alloc | 分配器类型,默认为allocator<CharT> |
basic_string是一个动态字符序列容器,针对字符串操作进行了优化。 支持小字符串优化(SSO)减少动态分配。
在文件 basic_string.hpp 第 173 行定义.
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
追加另一个字符串
| other | 源字符串 |
在文件 basic_string.hpp 第 1628 行定义.
被这些函数引用 basic_string< char >::append().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
追加C风格字符串
| str | C风格字符串 |
在文件 basic_string.hpp 第 1742 行定义.
被这些函数引用 basic_string< char >::append().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
追加多个相同字符
| n | 字符数量 |
| value | 要追加的字符 |
在文件 basic_string.hpp 第 1560 行定义.
被这些函数引用 basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::assign(), basic_string< char >::assign(), basic_string< char >::assign(), basic_string< char >::operator+=(), basic_string< char >::operator+=(), basic_string< char >::operator+=(), basic_string< char >::operator+=(), basic_string< char >::operator+=(), basic_string< char >::operator+=(), basic_string< char >::push_back(), basic_string< char >::resize() , 以及 basic_string< char >::shrink_to_fit().
|
inlineconstexpr |
|
inlineconstexpr |
追加单个字符
| value | 要追加的字符 |
在文件 basic_string.hpp 第 1605 行定义.
被这些函数引用 basic_string< char >::append().
|
inlineconstexpr |
追加字符串视图
| view | 字符串视图 |
在文件 basic_string.hpp 第 1692 行定义.
被这些函数引用 basic_string< char >::append().
|
inlineconstexpr |
追加字符串视图的指定长度
| view | 字符串视图 |
| n | 字符数 |
在文件 basic_string.hpp 第 1685 行定义.
被这些函数引用 basic_string< char >::append().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
获取起始迭代器
在文件 basic_string.hpp 第 1144 行定义.
被这些函数引用 basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::insert(), basic_string< char >::insert(), basic_string< char >::insert(), basic_string< char >::lowercase(), basic_string< char >::operator=(), basic_string< char >::rend(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::resize(), basic_string< char >::reverse(), basic_string< char >::trim_left_if() , 以及 basic_string< char >::uppercase().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
获取常量起始迭代器
在文件 basic_string.hpp 第 1168 行定义.
被这些函数引用 basic_string< char >::begin() , 以及 basic_string< char >::crend().
|
inlinenodiscardconstexprnoexcept |
获取常量结束迭代器
在文件 basic_string.hpp 第 1174 行定义.
被这些函数引用 basic_string< char >::crbegin() , 以及 basic_string< char >::end().
|
inlinenodiscardconstexprnoexcept |
比较另一个字符串
| other | 另一个字符串 |
在文件 basic_string.hpp 第 2165 行定义.
被这些函数引用 basic_string< char >::compare(), basic_string< char >::compare() , 以及 basic_string< char >::less_than().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
比较子串与另一个字符串的子串
| off | 起始偏移 |
| n | 长度 |
| other | 另一个字符串 |
| roff | 目标起始偏移 |
| count | 目标长度 |
在文件 basic_string.hpp 第 2190 行定义.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
忽略大小写三路比较
| view | 要比较的视图 |
在文件 basic_string.hpp 第 2242 行定义.
被这些函数引用 basic_string< char >::compare_ignore_case() , 以及 basic_string< char >::compare_ignore_case().
|
inlinenodiscardconstexprnoexcept |
|
inlineconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
获取常量反向起始迭代器
在文件 basic_string.hpp 第 1204 行定义.
被这些函数引用 basic_string< char >::rbegin().
|
inlinenodiscardconstexprnoexcept |
获取常量反向结束迭代器
在文件 basic_string.hpp 第 1212 行定义.
被这些函数引用 basic_string< char >::rend().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
获取数据指针
在文件 basic_string.hpp 第 1365 行定义.
被这些函数引用 basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::back(), basic_string< char >::back(), basic_string< char >::basic_string(), basic_string< char >::basic_string(), basic_string< char >::basic_string(), basic_string< char >::begin(), basic_string< char >::cbegin(), basic_string< char >::cend(), basic_string< char >::compare(), basic_string< char >::compare_ignore_case(), basic_string< char >::copy(), basic_string< char >::count(), basic_string< char >::end(), basic_string< char >::ends_with(), basic_string< char >::ends_with(), basic_string< char >::equal_to(), basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::front(), basic_string< char >::front(), basic_string< char >::operator=(), basic_string< char >::operator[](), basic_string< char >::operator[](), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::starts_with(), basic_string< char >::starts_with(), basic_string< char >::substr(), basic_string< char >::to_hash(), basic_string< char >::view(), basic_string< char >::view(), XOR_decrypt() , 以及 XOR_encrypt().
|
inlinenodiscardconstexprnoexcept |
检查是否为空
在文件 basic_string.hpp 第 1256 行定义.
被这些函数引用 basic_string< char >::back(), basic_string< char >::back(), basic_string< char >::ends_with(), basic_string< char >::front(), basic_string< char >::front(), basic_string< char >::pop_back(), basic_string< char >::starts_with(), basic_string< char >::trim_left_if() , 以及 basic_string< char >::trim_right_if().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
获取结束迭代器
在文件 basic_string.hpp 第 1150 行定义.
被这些函数引用 basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::lowercase(), basic_string< char >::rbegin(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::resize(), basic_string< char >::reverse(), basic_string< char >::trim_left_if(), basic_string< char >::trim_right_if() , 以及 basic_string< char >::uppercase().
|
inlinenodiscardconstexprnoexcept |
相等比较
| other | 另一个字符串 |
在文件 basic_string.hpp 第 2732 行定义.
被这些函数引用 basic_string< char >::equal_to() , 以及 basic_string< char >::equal_to().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
删除指定位置的字符
| position | 要删除的位置 |
在文件 basic_string.hpp 第 1905 行定义.
被这些函数引用 basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::resize(), basic_string< char >::trim_left_if() , 以及 basic_string< char >::trim_right_if().
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexpr |
|
inlineconstexpr |
插入迭代器范围
| Iterator | 迭代器类型 |
| position | 插入位置 |
| first | 源起始 |
| last | 源结束 |
在文件 basic_string.hpp 第 1486 行定义.
|
inlineconstexpr |
插入单个字符
| position | 插入位置 |
| value | 要插入的字符 |
在文件 basic_string.hpp 第 1397 行定义.
被这些函数引用 basic_string< char >::insert() , 以及 basic_string< char >::operator=().
|
inlineconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
获取最大可能大小
在文件 basic_string.hpp 第 1232 行定义.
被这些函数引用 basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append() , 以及 basic_string< char >::reserve().
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlineconstexpr |
在末尾插入字符
| value | 要插入的字符 |
在文件 basic_string.hpp 第 1532 行定义.
被这些函数引用 codepoint::append_to(), getline(), getline(), bitset< N >::to_string() , 以及 wcharacter::to_u16string().
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlineconstexpr |
预留容量
| n | 要预留的字符数 |
在文件 basic_string.hpp 第 1262 行定义.
被这些函数引用 address_string(), basic_string< char >::basic_string(), escape(), format(), basic_string< char >::repeat(), basic_string< char >::shrink_to_fit(), bitset< N >::to_string(), u8character::to_string(), character::to_u16string(), u16character::to_u16string(), u32character::to_u16string(), u8character::to_u16string(), wcharacter::to_u16string(), character::to_u32string(), u16character::to_u32string(), u8character::to_u32string(), wcharacter::to_u32string(), character::to_u8string(), u16character::to_u8string(), u32character::to_u8string(), character::to_wstring(), u16character::to_wstring(), u32character::to_wstring() , 以及 u8character::to_wstring().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinenodiscardconstexprnoexcept |
获取字符数
在文件 basic_string.hpp 第 1220 行定义.
被这些函数引用 basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::append(), basic_string< char >::back(), basic_string< char >::back(), basic_string< char >::basic_string(), basic_string< char >::basic_string(), basic_string< char >::basic_string(), basic_string< char >::cend(), basic_string< char >::compare(), basic_string< char >::compare_ignore_case(), basic_string< char >::copy(), basic_string< char >::count(), basic_string< char >::empty(), basic_string< char >::end(), basic_string< char >::ends_with(), basic_string< char >::ends_with(), basic_string< char >::equal_to(), basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::erase(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_first_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::find_last_of(), basic_string< char >::insert(), basic_string< char >::insert(), basic_string< char >::length(), basic_string< char >::operator=(), basic_string< char >::operator[](), basic_string< char >::operator[](), basic_string< char >::pop_back(), basic_string< char >::repeat(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::replace(), basic_string< char >::reserve(), basic_string< char >::resize(), basic_string< char >::reverse(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::rfind(), basic_string< char >::shrink_to_fit(), basic_string< char >::starts_with(), basic_string< char >::starts_with(), basic_string< char >::substr(), basic_string< char >::to_hash(), basic_string< char >::view(), basic_string< char >::view(), XOR_decrypt() , 以及 XOR_encrypt().
|
inlinenodiscardconstexpr |
获取子串
| off | 起始偏移 |
| count | 长度 |
在文件 basic_string.hpp 第 2105 行定义.
被这些函数引用 basic_string< char >::head() , 以及 basic_string< char >::tail().
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
根据谓词去除左侧字符
| Pred | 谓词类型 |
| pred | 谓词函数 |
在文件 basic_string.hpp 第 2677 行定义.
被这些函数引用 basic_string< char >::trim_if() , 以及 basic_string< char >::trim_left().
|
inlineconstexprnoexcept |
|
inlineconstexpr |
根据谓词去除右侧字符
| Pred | 谓词类型 |
| pred | 谓词函数 |
在文件 basic_string.hpp 第 2700 行定义.
被这些函数引用 basic_string< char >::trim_if() , 以及 basic_string< char >::trim_right().
|
inlinenodiscardconstexprnoexcept |
获取字符串视图
在文件 basic_string.hpp 第 2132 行定义.
被这些函数引用 color::color(), basic_string< char >::compare(), basic_string< char >::compare(), basic_string< char >::compare(), basic_string< char >::compare(), escape(), boolean::parse(), to_string(), to_u16string(), to_u32string(), to_u8string() , 以及 to_wstring().
|
inlinenodiscardconstexprnoexcept |