std::experimental::basic_string_view<CharT,Traits>::substr
来自cppreference.com
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constexpr basic_string_view
substr(size_type pos = 0, size_type count = npos ) const;
|
||
返回到子字符串 [pos, pos + rcount) 的视图,其中 rcount 为 count 和 size() - pos 的较小值。
| pos | - | 首字符的位置 |
| count | - | 所请求的长度 |
对子字符串 [pos, pos + rcount) 的视图。
当 pos > size() 时抛出 std::out_of_range。
常数。
| 复制字符 (公开成员函数) [编辑] | |
| 在视图中查找字符 (公开成员函数) [编辑] |