YSTest: ystdex::cpp2017::basic_string_view< _tChar, _tTraits > 模板类 参考

YSTest PreAlpha_b900_20201012 The YSLib Test Project

Public 类型 | Public 成员函数 | 静态 Public 属性 | Private 成员函数 | Private 属性 | 相关函数 | 所有成员列表
ystdex::cpp2017::basic_string_view< _tChar, _tTraits > 模板类 参考
YBase Replacement features

`#include <string_view.hpp>`

类 ystdex::cpp2017::basic_string_view< _tChar, _tTraits > 继承关系图:
[图例]
ystdex::cpp2017::basic_string_view< _tChar, _tTraits > 的协作图:
[图例]

## Public 类型

using | traits_type = _tTraits
using | value_type = _tChar
using | pointer = _tChar *
using | const_pointer = const _tChar *
using | reference = _tChar &
using | const_reference = const _tChar &
using | const_iterator = const _tChar *
using | iterator = const_iterator
using | const_reverse_iterator = ystdex::reverse_iterator< const_iterator >
using | reverse_iterator = const_reverse_iterator
using | size_type = size_t
using | difference_type = ptrdiff_t

## Public 成员函数

| basic_string_view ()
| basic_string_view (const _tChar *str)
| basic_string_view (const _tChar *str, size_type len)
| basic_string_view (const basic_string_view &)=default
basic_string_view & | operator= (const basic_string_view &)=default
const_iterator | begin () const
const_iterator | end () const
const_iterator | cbegin () const
const_iterator | cend () const
const_reverse_iterator | rbegin () const
const_reverse_iterator | rend () const
const_reverse_iterator | crbegin () const
const_reverse_iterator | crend () const
size_type | size () const
size_type | length () const
size_type | max_size () const
bool | empty () const
const_reference | operator[] (size_type pos) const
const_reference | at (size_type pos) const
const_reference | front () const
const_reference | back () const
const_pointer | data () const
void | remove_prefix (size_type n)
void | remove_suffix (size_type n)
void | swap (basic_string_view &s)
size_type | copy (_tChar *s, size_type n, size_type pos=0) const
basic_string_view | substr (size_type pos=0, size_type n=npos) const
int | compare (basic_string_view s) const
int | compare (size_type pos1, size_type n1, basic_string_view s) const
int | compare (size_type pos1, size_type n1, basic_string_view s, size_type pos2, size_type n2) const
int | compare (const _tChar *s) const
int | compare (size_type pos1, size_type n1, const _tChar *s) const
int | compare (size_type pos1, size_type n1, const _tChar *s, size_type n2) const
size_type | find (basic_string_view s, size_type pos=0) const
size_type | find (_tChar c, size_type pos=0) const
size_type | find (const _tChar *s, size_type pos, size_type n) const
size_type | find (const _tChar *s, size_type pos=0) const
size_type | rfind (basic_string_view s, size_type pos=npos) const
size_type | rfind (_tChar c, size_type pos=npos) const
size_type | rfind (const _tChar *s, size_type pos, size_type n) const
size_type | rfind (const _tChar *s, size_type pos=npos) const
size_type | find_first_of (basic_string_view s, size_type pos=0) const
size_type | find_first_of (_tChar c, size_type pos=0) const
size_type | find_first_of (const _tChar *s, size_type pos, size_type n) const
size_type | find_first_of (const _tChar *s, size_type pos=0) const
size_type | find_last_of (basic_string_view s, size_type pos=npos) const
size_type | find_last_of (_tChar c, size_type pos=npos) const
size_type | find_last_of (const _tChar *s, size_type pos, size_type n) const
size_type | find_last_of (const _tChar *s, size_type pos=npos) const
size_type | find_first_not_of (basic_string_view s, size_type pos=0) const
size_type | find_first_not_of (_tChar c, size_type pos=0) const
size_type | find_first_not_of (const _tChar *s, size_type pos, size_type n) const
size_type | find_first_not_of (const _tChar *s, size_type pos=0) const
size_type | find_last_not_of (basic_string_view s, size_type pos=npos) const
size_type | find_last_not_of (_tChar c, size_type pos=npos) const
size_type | find_last_not_of (const _tChar *s, size_type pos, size_type n) const
size_type | find_last_not_of (const _tChar *s, size_type pos=npos) const

## 静态 Public 属性

static size_type | npos = size_type(-1)

## Private 成员函数

int | compare_remained (basic_string_view s, int ret) const

## Private 属性

const_pointer | data_
size_type | size_

## 相关函数

(请注意: 这些不是成员函数.)
template<typename _tChar , class _tTraits >
bool | operator== (basic_string_view< _tChar, _tTraits > x, basic_string_view< _tChar, _tTraits > y)

## 详细描述

### template<typename _tChar, class _tTraits = std::char_traits<_tChar>>
class ystdex::cpp2017::basic_string_view< _tChar, _tTraits >

自从
  build 640

在文件 string_view.hpp 第 93 行定义.

## 成员类型定义说明

## ◆ const_iterator

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::const_iterator = const _tChar*

在文件 string_view.hpp 第 103 行定义.

## ◆ const_pointer

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::const_pointer = const _tChar*

在文件 string_view.hpp 第 100 行定义.

## ◆ const_reference

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::const_reference = const _tChar&

在文件 string_view.hpp 第 102 行定义.

## ◆ const_reverse_iterator

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::const_reverse_iterator = ystdex::reverse_iterator<const_iterator>

在文件 string_view.hpp 第 105 行定义.

## ◆ difference_type

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::difference_type = ptrdiff_t

在文件 string_view.hpp 第 108 行定义.

## ◆ iterator

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::iterator = const_iterator

在文件 string_view.hpp 第 104 行定义.

## ◆ pointer

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::pointer = _tChar*

在文件 string_view.hpp 第 99 行定义.

## ◆ reference

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::reference = _tChar&

在文件 string_view.hpp 第 101 行定义.

## ◆ reverse_iterator

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::reverse_iterator = const_reverse_iterator

在文件 string_view.hpp 第 106 行定义.

## ◆ size_type

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_type = size_t

在文件 string_view.hpp 第 107 行定义.

## ◆ traits_type

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::traits_type = _tTraits

在文件 string_view.hpp 第 97 行定义.

## ◆ value_type

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

using ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::value_type = _tChar

在文件 string_view.hpp 第 98 行定义.

## 构造及析构函数说明

## ◆ basic_string_view() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view | ( |  | ) |

inline

在文件 string_view.hpp 第 117 行定义.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare() , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr().

这是这个函数的调用关系图:

## ◆ basic_string_view() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view | ( | const _tChar * | str | ) |

inline

在文件 string_view.hpp 第 121 行定义.

## ◆ basic_string_view() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view | ( | const _tChar * | str,
|  | size_type | len
| ) |  |

inline

自从
  build 861

在文件 string_view.hpp 第 126 行定义.

## ◆ basic_string_view() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view | ( | const basic_string_view< _tChar, _tTraits > & |  | ) |

inlinedefault

## 成员函数说明

## ◆ at()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reference ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::at | ( | size_type | pos | ) | const

inline

在文件 string_view.hpp 第 215 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_ , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

## ◆ back()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reference ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::back | ( |  | ) | const

inline

在文件 string_view.hpp 第 228 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_ , 以及 yconstraint.

## ◆ begin()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::begin | ( |  | ) | const

inline

在文件 string_view.hpp 第 136 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rend().

这是这个函数的调用关系图:

## ◆ cbegin()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cbegin | ( |  | ) | const

inline

在文件 string_view.hpp 第 148 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::crend().

这是这个函数的调用关系图:

## ◆ cend()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cend | ( |  | ) | const

inline

在文件 string_view.hpp 第 154 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_ , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::crbegin().

这是这个函数的调用关系图:

## ◆ compare() [1/6]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare | ( | basic_string_view< _tChar, _tTraits > | s | ) | const

inline

在文件 string_view.hpp 第 281 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare_remained(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data(), CHRLib::s , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size().

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare().

函数调用图:
这是这个函数的调用关系图:

## ◆ compare() [2/6]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare | ( | const _tChar * | s | ) | const

inline

在文件 string_view.hpp 第 298 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare() , 以及 CHRLib::s.

函数调用图:

## ◆ compare() [3/6]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare | ( | size_type | pos1,
|  | size_type | n1,
|  | basic_string_view< _tChar, _tTraits > | s
| ) |  | const

inline

在文件 string_view.hpp 第 287 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare(), CHRLib::s , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr().

函数调用图:

## ◆ compare() [4/6]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare | ( | size_type | pos1,
|  | size_type | n1,
|  | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos2,
|  | size_type | n2
| ) |  | const

inline

在文件 string_view.hpp 第 292 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare(), CHRLib::s , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr().

函数调用图:

## ◆ compare() [5/6]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare | ( | size_type | pos1,
|  | size_type | n1,
|  | const _tChar * | s
| ) |  | const

inline

在文件 string_view.hpp 第 303 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare(), CHRLib::s , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr().

函数调用图:

## ◆ compare() [6/6]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare | ( | size_type | pos1,
|  | size_type | n1,
|  | const _tChar * | s,
|  | size_type | n2
| ) |  | const

inline

在文件 string_view.hpp 第 308 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare(), CHRLib::s , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr().

函数调用图:

## ◆ compare_remained()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

int ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare_remained | ( | basic_string_view< _tChar, _tTraits > | s,
|  | int | ret
| ) |  | const

inlineprivate

在文件 string_view.hpp 第 315 行定义.

引用了 CHRLib::s , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size().

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare().

函数调用图:
这是这个函数的调用关系图:

## ◆ copy()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::copy | ( | _tChar * | s,
|  | size_type | n,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 259 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, CHRLib::s, ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_ , 以及 yconstraint.

## ◆ crbegin()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reverse_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::crbegin | ( |  | ) | const

inline

在文件 string_view.hpp 第 172 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cend().

函数调用图:

## ◆ crend()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reverse_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::crend | ( |  | ) | const

inline

在文件 string_view.hpp 第 178 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cbegin().

函数调用图:

## ◆ data()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_pointer ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data | ( |  | ) | const

inline

在文件 string_view.hpp 第 234 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_.

被这些函数引用 ystdex::cpp2017::basic_string< char >::append(), ystdex::cpp2017::basic_string< char >::assign(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare(), ystdex::cpp2017::basic_string< char >::find(), ystdex::cpp2017::basic_string< char >::find_first_not_of(), ystdex::cpp2017::basic_string< char >::find_first_of(), ystdex::cpp2017::basic_string< char >::find_last_not_of(), ystdex::cpp2017::basic_string< char >::find_last_of(), ystdex::cpp2017::basic_string< char >::insert(), ystdex::cpp2017::basic_string< char >::replace(), ystdex::cpp2017::basic_string< char >::rfind(), platform::strings::to_pmr_string() , 以及 platform::strings::to_std_string().

这是这个函数的调用关系图:

## ◆ empty()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

bool ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::empty | ( |  | ) | const

inline

在文件 string_view.hpp 第 203 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

## ◆ end()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::end | ( |  | ) | const

inline

在文件 string_view.hpp 第 142 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_ , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rbegin().

这是这个函数的调用关系图:

## ◆ find() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find | ( | _tChar | c,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 357 行定义.

## ◆ find() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find | ( | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 357 行定义.

被这些函数引用 main().

这是这个函数的调用关系图:

## ◆ find() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find | ( | const _tChar * | s,
|  | size_type | pos,
|  | size_type | n
| ) |  | const

inline

在文件 string_view.hpp 第 357 行定义.

## ◆ find() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find | ( | const _tChar * | s,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 357 行定义.

## ◆ find_first_not_of() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_not_of | ( | _tChar | c,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 365 行定义.

## ◆ find_first_not_of() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_not_of | ( | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 365 行定义.

被这些函数引用 main().

这是这个函数的调用关系图:

## ◆ find_first_not_of() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_not_of | ( | const _tChar * | s,
|  | size_type | pos,
|  | size_type | n
| ) |  | const

inline

在文件 string_view.hpp 第 365 行定义.

## ◆ find_first_not_of() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_not_of | ( | const _tChar * | s,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 365 行定义.

## ◆ find_first_of() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_of | ( | _tChar | c,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 361 行定义.

## ◆ find_first_of() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_of | ( | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 361 行定义.

被这些函数引用 main().

这是这个函数的调用关系图:

## ◆ find_first_of() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_of | ( | const _tChar * | s,
|  | size_type | pos,
|  | size_type | n
| ) |  | const

inline

在文件 string_view.hpp 第 361 行定义.

## ◆ find_first_of() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_first_of | ( | const _tChar * | s,
|  | size_type | pos = `0`
| ) |  | const

inline

在文件 string_view.hpp 第 361 行定义.

## ◆ find_last_not_of() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_not_of | ( | _tChar | c,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 367 行定义.

## ◆ find_last_not_of() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_not_of | ( | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 367 行定义.

## ◆ find_last_not_of() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_not_of | ( | const _tChar * | s,
|  | size_type | pos,
|  | size_type | n
| ) |  | const

inline

在文件 string_view.hpp 第 367 行定义.

## ◆ find_last_not_of() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_not_of | ( | const _tChar * | s,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 367 行定义.

## ◆ find_last_of() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_of | ( | _tChar | c,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 363 行定义.

## ◆ find_last_of() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_of | ( | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 363 行定义.

## ◆ find_last_of() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_of | ( | const _tChar * | s,
|  | size_type | pos,
|  | size_type | n
| ) |  | const

inline

在文件 string_view.hpp 第 363 行定义.

## ◆ find_last_of() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::find_last_of | ( | const _tChar * | s,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 363 行定义.

## ◆ front()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reference ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::front | ( |  | ) | const

inline

在文件 string_view.hpp 第 222 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_ , 以及 yconstraint.

## ◆ length()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::length | ( |  | ) | const

inline

在文件 string_view.hpp 第 190 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

## ◆ max_size()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::max_size | ( |  | ) | const

inline

在文件 string_view.hpp 第 196 行定义.

引用了 ystdex::cpp2014::max().

函数调用图:

## ◆ operator=()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

basic_string_view& ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::operator= | ( | const basic_string_view< _tChar, _tTraits > & |  | ) |

inlinedefault

## ◆ operator[]()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reference ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::operator[] | ( | size_type | pos | ) | const

inline

在文件 string_view.hpp 第 209 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_ , 以及 yconstraint.

## ◆ rbegin()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reverse_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rbegin | ( |  | ) | const

inline

在文件 string_view.hpp 第 160 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::end().

函数调用图:

## ◆ remove_prefix()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

void ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::remove_prefix | ( | size_type | n | ) |

inline

在文件 string_view.hpp 第 240 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_, yconstraint , 以及 yunseq.

## ◆ remove_suffix()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

void ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::remove_suffix | ( | size_type | n | ) |

inline

在文件 string_view.hpp 第 246 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_ , 以及 yconstraint.

## ◆ rend()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_reverse_iterator ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rend | ( |  | ) | const

inline

在文件 string_view.hpp 第 166 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::begin().

函数调用图:

## ◆ rfind() [1/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rfind | ( | _tChar | c,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 359 行定义.

## ◆ rfind() [2/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rfind | ( | basic_string_view< _tChar, _tTraits > | s,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 359 行定义.

被这些函数引用 main().

这是这个函数的调用关系图:

## ◆ rfind() [3/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rfind | ( | const _tChar * | s,
|  | size_type | pos,
|  | size_type | n
| ) |  | const

inline

在文件 string_view.hpp 第 359 行定义.

## ◆ rfind() [4/4]

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::rfind | ( | const _tChar * | s,
|  | size_type | pos = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 359 行定义.

## ◆ size()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size | ( |  | ) | const

inline

在文件 string_view.hpp 第 184 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

被这些函数引用 ystdex::cpp2017::basic_string< char >::append(), ystdex::cpp2017::basic_string< char >::assign(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare_remained(), ystdex::cpp2017::basic_string< char >::find(), ystdex::cpp2017::basic_string< char >::find_first_not_of(), ystdex::cpp2017::basic_string< char >::find_first_of(), ystdex::cpp2017::basic_string< char >::find_last_not_of(), ystdex::cpp2017::basic_string< char >::find_last_of(), ystdex::cpp2017::basic_string< char >::insert(), ystdex::cpp2017::basic_string< char >::replace(), ystdex::cpp2017::basic_string< char >::rfind(), platform::strings::to_pmr_string() , 以及 platform::strings::to_std_string().

这是这个函数的调用关系图:

## ◆ substr()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

basic_string_view ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr | ( | size_type | pos = `0`,
|  | size_type | n = `npos`
| ) |  | const

inline

在文件 string_view.hpp 第 273 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::basic_string_view(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, ystdex::cpp2014::min() , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::compare() , 以及 ystdex::cpp2017::basic_string< char >::compare().

函数调用图:
这是这个函数的调用关系图:

## ◆ swap()

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

void ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::swap | ( | basic_string_view< _tChar, _tTraits > & | s | ) |

inline

在文件 string_view.hpp 第 252 行定义.

引用了 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_, CHRLib::s, ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_ , 以及 ystdex::cpp2017::swap().

函数调用图:

## 友元及相关函数文档

## ◆ operator==()

template<typename _tChar , class _tTraits >

bool operator== | ( | basic_string_view< _tChar, _tTraits > | x,
|  | basic_string_view< _tChar, _tTraits > | y
| ) |  |

related

在文件 string_view.hpp 第 380 行定义.

引用了 x , 以及 YSLib::UI::y.

## 类成员变量说明

## ◆ data_

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

const_pointer ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data_

private

在文件 string_view.hpp 第 112 行定义.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::at(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::back(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::begin(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cbegin(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cend(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::copy(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::data(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::end(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::front(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::operator[](), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::remove_prefix(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr() , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::swap().

## ◆ npos

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::npos = size_type(-1)

static

在文件 string_view.hpp 第 109 行定义.

被这些函数引用 main().

## ◆ size_

template<typename _tChar , class _tTraits = std::char_traits<_tChar>>

size_type ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size_

private

在文件 string_view.hpp 第 113 行定义.

被这些函数引用 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::at(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::back(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::cend(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::copy(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::empty(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::end(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::front(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::length(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::operator[](), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::remove_prefix(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::remove_suffix(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::size(), ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::substr() , 以及 ystdex::cpp2017::basic_string_view< _tChar, _tTraits >::swap().

该类的文档由以下文件生成:

- string_view.hpp