YSTest: ystdex::basic_tstring_view< _tChar, _tTraits, 0 > 模板类 参考

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

Public 类型 | Public 成员函数 | 静态 Public 属性 | Private 成员函数 | 所有成员列表
ystdex::basic_tstring_view< _tChar, _tTraits, 0 > 模板类 参考

`#include <tstring_view.hpp>`

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

## 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 = std::reverse_iterator< const_iterator >
using | reverse_iterator = const_reverse_iterator
using | size_type = size_t
using | difference_type = ptrdiff_t
using | base = basic_string_view< _tChar, _tTraits >

## Public 成员函数

| basic_tstring_view ()=default
| basic_tstring_view (const _tChar *str)
| basic_tstring_view (const _tChar *str, size_type len)
| basic_tstring_view (base sv)
template<class _tAlloc >
| basic_tstring_view (const std::basic_string< _tChar, _tTraits, _tAlloc > &str)
| basic_tstring_view (const basic_tstring_view &)=default
basic_tstring_view & | operator= (const basic_tstring_view &)=default
void | swap (basic_tstring_view &s)
template<class _tAlloc = std::allocator<_tChar>>
| operator std::basic_string< _tChar, _tTraits, _tAlloc > () const
| operator base () const
basic_tstring_view | substr (size_type pos=0) const
int | compare (basic_tstring_view s) const
int | compare (size_type pos1, size_type n1, basic_tstring_view s) const
int | compare (size_type pos1, size_type n1, basic_tstring_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

## 静态 Public 成员函数

static bool | verify (const _tChar *str, size_type len)
static bool | verify_term (const _tChar *str, size_type len)

## 静态 Public 属性

static value_type | term = {}

## Private 成员函数

int | compare_remained (basic_tstring_view s, int ret) const
Private 成员函数 继承自 ystdex::basic_string_view< _tChar, _tTraits >
| basic_string_view ()
| basic_string_view (const _tChar *str)
| basic_string_view (const _tChar *str, size_type len)
template<class _tAlloc >
| basic_string_view (const std::basic_string< _tChar, _tTraits, _tAlloc > &str)
| 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
template<class _tAlloc >
| operator std::basic_string< _tChar, _tTraits, _tAlloc > () const
template<class _tAlloc = std::allocator<_tChar>>
std::basic_string< _tChar, _tTraits, _tAlloc > | to_string (const _tAlloc &a=_tAlloc()) const

## 额外继承的成员函数

Private 类型 继承自 ystdex::basic_string_view< _tChar, _tTraits >
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 = std::reverse_iterator< const_iterator >
using | reverse_iterator = const_reverse_iterator
using | size_type = size_t
using | difference_type = ptrdiff_t
静态 Private 属性 继承自 ystdex::basic_string_view< _tChar, _tTraits >
static size_type | npos = size_type(-1)

## 详细描述

### template<typename _tChar, class _tTraits>
class ystdex::basic_tstring_view< _tChar, _tTraits, 0 >

在文件 tstring_view.hpp 第 50 行定义.

## 成员类型定义说明

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::base = basic_string_view<_tChar, _tTraits>

在文件 tstring_view.hpp 第 67 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::const_iterator = const _tChar*

在文件 tstring_view.hpp 第 61 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::const_pointer = const _tChar*

在文件 tstring_view.hpp 第 58 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::const_reference = const _tChar&

在文件 tstring_view.hpp 第 60 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::const_reverse_iterator = std::reverse_iterator<const_iterator>

在文件 tstring_view.hpp 第 63 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::difference_type = ptrdiff_t

在文件 tstring_view.hpp 第 66 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::iterator = const_iterator

在文件 tstring_view.hpp 第 62 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::pointer = _tChar*

在文件 tstring_view.hpp 第 57 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::reference = _tChar&

在文件 tstring_view.hpp 第 59 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::reverse_iterator = const_reverse_iterator

在文件 tstring_view.hpp 第 64 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::size_type = size_t

在文件 tstring_view.hpp 第 65 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::traits_type = _tTraits

在文件 tstring_view.hpp 第 55 行定义.

template<typename _tChar , class _tTraits >

using ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::value_type = _tChar

在文件 tstring_view.hpp 第 56 行定义.

## 构造及析构函数说明

template<typename _tChar , class _tTraits >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::basic_tstring_view | ( |  | ) |

inlinedefault

template<typename _tChar , class _tTraits >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::basic_tstring_view | ( | const _tChar * | str | ) |

inline

在文件 tstring_view.hpp 第 74 行定义.

template<typename _tChar , class _tTraits >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::basic_tstring_view | ( | const _tChar * | str,
|  | size_type | len
| ) |  |

inline

在文件 tstring_view.hpp 第 78 行定义.

template<typename _tChar , class _tTraits >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::basic_tstring_view | ( | base | sv | ) |

inline

自从
  build 641

在文件 tstring_view.hpp 第 83 行定义.

template<typename _tChar , class _tTraits >
template<class _tAlloc >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::basic_tstring_view | ( | const std::basic_string< _tChar, _tTraits, _tAlloc > & | str | ) |

inline

在文件 tstring_view.hpp 第 87 行定义.

template<typename _tChar , class _tTraits >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::basic_tstring_view | ( | const basic_tstring_view< _tChar, _tTraits, 0 > & |  | ) |

inlinedefault

## 成员函数说明

template<typename _tChar , class _tTraits >

int ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::compare | ( | basic_tstring_view< _tChar, _tTraits, 0 > | s | ) | const

inline

在文件 tstring_view.hpp 第 165 行定义.

参考 ystdex::data(), ystdex::ntctscmp(), CHRLib::s , 以及 ystdex::size().

函数调用图:
template<typename _tChar , class _tTraits >

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

inline

在文件 tstring_view.hpp 第 171 行定义.

template<typename _tChar , class _tTraits >

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

inline

在文件 tstring_view.hpp 第 176 行定义.

template<typename _tChar , class _tTraits >

int ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::compare | ( | const _tChar * | s | ) | const

inline

在文件 tstring_view.hpp 第 182 行定义.

template<typename _tChar , class _tTraits >

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

inline

在文件 tstring_view.hpp 第 187 行定义.

template<typename _tChar , class _tTraits >

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

inline

在文件 tstring_view.hpp 第 192 行定义.

template<typename _tChar , class _tTraits >

int ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::compare_remained | ( | basic_tstring_view< _tChar, _tTraits, 0 > | s,
|  | int | ret
| ) |  | const

inlineprivate

在文件 tstring_view.hpp 第 199 行定义.

参考 CHRLib::s , 以及 ystdex::size().

函数调用图:
template<typename _tChar , class _tTraits >

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::operator base | ( |  | ) | const

inline

在文件 tstring_view.hpp 第 147 行定义.

template<typename _tChar , class _tTraits >
template<class _tAlloc = std::allocator<_tChar>>

ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::operator std::basic_string< _tChar, _tTraits, _tAlloc > | ( |  | ) | const

inlineexplicit

在文件 tstring_view.hpp 第 141 行定义.

template<typename _tChar , class _tTraits >

basic_tstring_view& ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::operator= | ( | const basic_tstring_view< _tChar, _tTraits, 0 > & |  | ) |

default

template<typename _tChar , class _tTraits >

basic_tstring_view ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::substr | ( | size_type | pos = `0` | ) | const

inline

在文件 tstring_view.hpp 第 157 行定义.

参考 ystdex::data() , 以及 ystdex::size().

函数调用图:
template<typename _tChar , class _tTraits >

void ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::swap | ( | basic_tstring_view< _tChar, _tTraits, 0 > & | s | ) |

inline

在文件 tstring_view.hpp 第 134 行定义.

参考 CHRLib::s , 以及 ystdex::swap().

函数调用图:
template<typename _tChar , class _tTraits >

static bool ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::verify | ( | const _tChar * | str,
|  | size_type | len
| ) |  |

inlinestatic

自从
  build 641

在文件 tstring_view.hpp 第 216 行定义.

参考 yconstraint.

template<typename _tChar , class _tTraits >

static bool ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::verify_term | ( | const _tChar * | str,
|  | size_type | len
| ) |  |

inlinestatic

在文件 tstring_view.hpp 第 223 行定义.

参考 yconstraint.

## 类成员变量说明

template<typename _tChar , class _tTraits >

value_type ystdex::basic_tstring_view< _tChar, _tTraits, 0 >::term = {}

static

在文件 tstring_view.hpp 第 69 行定义.

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

- tstring_view.hpp