Kiwano Engine v1.3.x
kiwano::BasicStringView< CharTy > 模板类 参考

基础字符串视图 更多...

#include <String.h>

class  Iterator
 

Public 类型

using value_type = CharTy
 
using pointer = CharTy *
 
using const_pointer = const CharTy *
 
using reference = CharTy &
 
using const_reference = const CharTy &
 
using traits_type = std::char_traits< CharTy >
 
using size_type = std::size_t
 
using string_type = BasicString< CharTy >
 
using const_iterator = Iterator
 
using iterator = const_iterator
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using reverse_iterator = const_reverse_iterator
 

Public 成员函数

 BasicStringView (const_pointer c_str)
 
 BasicStringView (const_pointer c_str, size_type count)
 
 BasicStringView (const string_type &str)
 
 BasicStringView (const BasicStringView &rhs)
 
const value_type * data () const
 
bool empty () const
 
size_type find (value_type ch) const
 
BasicStringView substr (size_type pos, size_type count=string_type::npos) const
 
size_type size () const
 
value_type at (size_type index) const
 
value_type operator[] (size_type index) const
 
BasicStringViewoperator= (const BasicStringView &rhs)
 
 operator string_type () const
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator end () const
 
const_iterator cend () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rend () const
 
const_reverse_iterator crend () const
 
const value_type & front () const
 
const value_type & back () const
 

友元

bool operator== (const BasicStringView &lhs, const BasicStringView &rhs)
 

详细描述

template<typename CharTy>
class kiwano::BasicStringView< CharTy >

基础字符串视图

基础常字符串视图