Logo ROOT  
Reference Guide
basic_string_view< _CharT, _Traits > Class Template Reference

template<class _CharT, class _Traits = _VSTD::char_traits<_CharT>>
class basic_string_view< _CharT, _Traits >

Definition at line 199 of file libcpp_string_view.h.

Public Types

typedef const_pointer const_iterator
 
typedef _VSTD::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef ptrdiff_t difference_type
 
typedef const_iterator iterator
 
typedef const_reverse_iterator reverse_iterator
 
typedef size_t size_type
 
typedef _Traits traits_type
 
typedef _CharT value_type
 

Public Member Functions

_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view () _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view (const _CharT *__s)
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view (const _CharT *__s, size_type __len)
 
template<class _Allocator >
_LIBCPP_INLINE_VISIBILITY basic_string_view (const basic_string< _CharT, _Traits, _Allocator > &__str) _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view (const basic_string_view &) _NOEXCEPT=default
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference at (size_type __pos) const
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference back () const
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator begin () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator cbegin () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator cend () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void clear () _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 int compare (basic_string_view __sv) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int compare (const _CharT *__s) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int compare (size_type __pos1, size_type __n1, basic_string_view __sv) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int compare (size_type __pos1, size_type __n1, basic_string_view _sv, size_type __pos2, size_type __n2) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int compare (size_type __pos1, size_type __n1, const _CharT *__s) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int compare (size_type __pos1, size_type __n1, const _CharT *__s, size_type __n2) const
 
size_type copy (_CharT *__s, size_type __n, size_type __pos=0) const
 
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator crbegin () const _NOEXCEPT
 
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator crend () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_pointer data () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR bool _LIBCPP_INLINE_VISIBILITY empty () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator end () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find (_CharT __c, size_type __pos=0) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find (basic_string_view __s, size_type __pos=0) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find (const _CharT *__s, size_type __pos, size_type __n) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find (const _CharT *__s, size_type __pos=0) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_not_of (_CharT __c, size_type __pos=0) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_not_of (basic_string_view __s, size_type __pos=0) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_not_of (const _CharT *__s, size_type __pos, size_type __n) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_not_of (const _CharT *__s, size_type __pos=0) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_of (_CharT __c, size_type __pos=0) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_of (basic_string_view __s, size_type __pos=0) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_of (const _CharT *__s, size_type __pos, size_type __n) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_first_of (const _CharT *__s, size_type __pos=0) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_not_of (_CharT __c, size_type __pos=npos) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_not_of (basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_not_of (const _CharT *__s, size_type __pos, size_type __n) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_not_of (const _CharT *__s, size_type __pos=npos) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_of (_CharT __c, size_type __pos=npos) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_of (basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_of (const _CharT *__s, size_type __pos, size_type __n) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type find_last_of (const _CharT *__s, size_type __pos=npos) const
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference front () const
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY size_type length () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY size_type max_size () const _NOEXCEPT
 
template<class _Allocator >
_LIBCPP_INLINE_VISIBILITY _LIBCPP_EXPLICIT operator basic_string< _CharT, _Traits, _Allocator > () const
 
_LIBCPP_INLINE_VISIBILITY basic_string_viewoperator= (const basic_string_view &) _NOEXCEPT=default
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference operator[] (size_type __pos) const
 
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator rbegin () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void remove_prefix (size_type __n) _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void remove_suffix (size_type __n) _NOEXCEPT
 
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator rend () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type rfind (_CharT __c, size_type __pos=npos) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type rfind (basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type rfind (const _CharT *__s, size_type __pos, size_type __n) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type rfind (const _CharT *__s, size_type __pos=npos) const
 
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY size_type size () const _NOEXCEPT
 
_LIBCPP_CONSTEXPR basic_string_view substr (size_type __pos=0, size_type __n=npos) const
 
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void swap (basic_string_view &__other) _NOEXCEPT
 

Public Attributes

const typedef _CharT * const_pointer
 
const typedef _CharT & const_reference
 
const typedef _CharT * pointer
 
const typedef _CharT & reference
 

Static Public Attributes

static const _LIBCPP_CONSTEXPR size_type npos = -1
 

Private Attributes

const value_type__data
 
size_type __size
 

#include <ROOT/libcpp_string_view.h>

Member Typedef Documentation

◆ const_iterator

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef const_pointer basic_string_view< _CharT, _Traits >::const_iterator

Definition at line 208 of file libcpp_string_view.h.

◆ const_reverse_iterator

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef _VSTD::reverse_iterator<const_iterator> basic_string_view< _CharT, _Traits >::const_reverse_iterator

Definition at line 210 of file libcpp_string_view.h.

◆ difference_type

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef ptrdiff_t basic_string_view< _CharT, _Traits >::difference_type

Definition at line 213 of file libcpp_string_view.h.

◆ iterator

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef const_iterator basic_string_view< _CharT, _Traits >::iterator

Definition at line 209 of file libcpp_string_view.h.

◆ reverse_iterator

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef const_reverse_iterator basic_string_view< _CharT, _Traits >::reverse_iterator

Definition at line 211 of file libcpp_string_view.h.

◆ size_type

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef size_t basic_string_view< _CharT, _Traits >::size_type

Definition at line 212 of file libcpp_string_view.h.

◆ traits_type

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef _Traits basic_string_view< _CharT, _Traits >::traits_type

Definition at line 202 of file libcpp_string_view.h.

◆ value_type

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
typedef _CharT basic_string_view< _CharT, _Traits >::value_type

Definition at line 203 of file libcpp_string_view.h.

Constructor & Destructor Documentation

◆ basic_string_view() [1/5]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view< _CharT, _Traits >::basic_string_view ( )
inline

Definition at line 218 of file libcpp_string_view.h.

◆ basic_string_view() [2/5]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view< _CharT, _Traits >::basic_string_view ( const basic_string_view< _CharT, _Traits > &  )
default

◆ basic_string_view() [3/5]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
template<class _Allocator >
_LIBCPP_INLINE_VISIBILITY basic_string_view< _CharT, _Traits >::basic_string_view ( const basic_string< _CharT, _Traits, _Allocator > &  __str)
inline

Definition at line 228 of file libcpp_string_view.h.

◆ basic_string_view() [4/5]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view< _CharT, _Traits >::basic_string_view ( const _CharT *  __s,
size_type  __len 
)
inline

Definition at line 232 of file libcpp_string_view.h.

◆ basic_string_view() [5/5]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY basic_string_view< _CharT, _Traits >::basic_string_view ( const _CharT *  __s)
inline

Definition at line 239 of file libcpp_string_view.h.

Member Function Documentation

◆ at()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference basic_string_view< _CharT, _Traits >::at ( size_type  __pos) const
inline

Definition at line 285 of file libcpp_string_view.h.

◆ back()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference basic_string_view< _CharT, _Traits >::back ( ) const
inline

Definition at line 299 of file libcpp_string_view.h.

◆ begin()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator basic_string_view< _CharT, _Traits >::begin ( ) const
inline

Definition at line 244 of file libcpp_string_view.h.

◆ cbegin()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator basic_string_view< _CharT, _Traits >::cbegin ( ) const
inline

Definition at line 250 of file libcpp_string_view.h.

◆ cend()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator basic_string_view< _CharT, _Traits >::cend ( ) const
inline

Definition at line 253 of file libcpp_string_view.h.

◆ clear()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void basic_string_view< _CharT, _Traits >::clear ( )
inline

Definition at line 309 of file libcpp_string_view.h.

◆ compare() [1/6]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 int basic_string_view< _CharT, _Traits >::compare ( basic_string_view< _CharT, _Traits >  __sv) const
inline

Definition at line 371 of file libcpp_string_view.h.

◆ compare() [2/6]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int basic_string_view< _CharT, _Traits >::compare ( const _CharT *  __s) const
inline

Definition at line 394 of file libcpp_string_view.h.

◆ compare() [3/6]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int basic_string_view< _CharT, _Traits >::compare ( size_type  __pos1,
size_type  __n1,
basic_string_view< _CharT, _Traits >  __sv 
) const
inline

Definition at line 381 of file libcpp_string_view.h.

◆ compare() [4/6]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int basic_string_view< _CharT, _Traits >::compare ( size_type  __pos1,
size_type  __n1,
basic_string_view< _CharT, _Traits >  _sv,
size_type  __pos2,
size_type  __n2 
) const
inline

Definition at line 387 of file libcpp_string_view.h.

◆ compare() [5/6]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int basic_string_view< _CharT, _Traits >::compare ( size_type  __pos1,
size_type  __n1,
const _CharT *  __s 
) const
inline

Definition at line 400 of file libcpp_string_view.h.

◆ compare() [6/6]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY int basic_string_view< _CharT, _Traits >::compare ( size_type  __pos1,
size_type  __n1,
const _CharT *  __s,
size_type  __n2 
) const
inline

Definition at line 406 of file libcpp_string_view.h.

◆ copy()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
size_type basic_string_view< _CharT, _Traits >::copy ( _CharT *  __s,
size_type  __n,
size_type  __pos = 0 
) const
inline

Definition at line 350 of file libcpp_string_view.h.

◆ crbegin()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator basic_string_view< _CharT, _Traits >::crbegin ( ) const
inline

Definition at line 262 of file libcpp_string_view.h.

◆ crend()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator basic_string_view< _CharT, _Traits >::crend ( ) const
inline

Definition at line 265 of file libcpp_string_view.h.

◆ data()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_pointer basic_string_view< _CharT, _Traits >::data ( ) const
inline

Definition at line 305 of file libcpp_string_view.h.

◆ empty()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR bool _LIBCPP_INLINE_VISIBILITY basic_string_view< _CharT, _Traits >::empty ( ) const
inline

Definition at line 278 of file libcpp_string_view.h.

◆ end()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_iterator basic_string_view< _CharT, _Traits >::end ( ) const
inline

Definition at line 247 of file libcpp_string_view.h.

◆ find() [1/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find ( _CharT  __c,
size_type  __pos = 0 
) const
inline

Definition at line 421 of file libcpp_string_view.h.

◆ find() [2/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find ( basic_string_view< _CharT, _Traits >  __s,
size_type  __pos = 0 
) const
inline

Definition at line 413 of file libcpp_string_view.h.

◆ find() [3/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const
inline

Definition at line 428 of file libcpp_string_view.h.

◆ find() [4/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find ( const _CharT *  __s,
size_type  __pos = 0 
) const
inline

Definition at line 436 of file libcpp_string_view.h.

◆ find_first_not_of() [1/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_not_of ( _CharT  __c,
size_type  __pos = 0 
) const
inline

Definition at line 543 of file libcpp_string_view.h.

◆ find_first_not_of() [2/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_not_of ( basic_string_view< _CharT, _Traits >  __s,
size_type  __pos = 0 
) const
inline

Definition at line 535 of file libcpp_string_view.h.

◆ find_first_not_of() [3/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_not_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const
inline

Definition at line 550 of file libcpp_string_view.h.

◆ find_first_not_of() [4/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_not_of ( const _CharT *  __s,
size_type  __pos = 0 
) const
inline

Definition at line 558 of file libcpp_string_view.h.

◆ find_first_of() [1/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_of ( _CharT  __c,
size_type  __pos = 0 
) const
inline

Definition at line 485 of file libcpp_string_view.h.

◆ find_first_of() [2/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_of ( basic_string_view< _CharT, _Traits >  __s,
size_type  __pos = 0 
) const
inline

Definition at line 477 of file libcpp_string_view.h.

◆ find_first_of() [3/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const
inline

Definition at line 489 of file libcpp_string_view.h.

◆ find_first_of() [4/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_first_of ( const _CharT *  __s,
size_type  __pos = 0 
) const
inline

Definition at line 497 of file libcpp_string_view.h.

◆ find_last_not_of() [1/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_not_of ( _CharT  __c,
size_type  __pos = npos 
) const
inline

Definition at line 575 of file libcpp_string_view.h.

◆ find_last_not_of() [2/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_not_of ( basic_string_view< _CharT, _Traits >  __s,
size_type  __pos = npos 
) const
inline

Definition at line 567 of file libcpp_string_view.h.

◆ find_last_not_of() [3/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_not_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const
inline

Definition at line 582 of file libcpp_string_view.h.

◆ find_last_not_of() [4/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_not_of ( const _CharT *  __s,
size_type  __pos = npos 
) const
inline

Definition at line 590 of file libcpp_string_view.h.

◆ find_last_of() [1/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_of ( _CharT  __c,
size_type  __pos = npos 
) const
inline

Definition at line 514 of file libcpp_string_view.h.

◆ find_last_of() [2/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_of ( basic_string_view< _CharT, _Traits >  __s,
size_type  __pos = npos 
) const
inline

Definition at line 506 of file libcpp_string_view.h.

◆ find_last_of() [3/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_of ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const
inline

Definition at line 518 of file libcpp_string_view.h.

◆ find_last_of() [4/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::find_last_of ( const _CharT *  __s,
size_type  __pos = npos 
) const
inline

Definition at line 526 of file libcpp_string_view.h.

◆ front()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference basic_string_view< _CharT, _Traits >::front ( ) const
inline

Definition at line 293 of file libcpp_string_view.h.

◆ length()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::length ( ) const
inline

Definition at line 272 of file libcpp_string_view.h.

◆ max_size()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::max_size ( ) const
inline

Definition at line 275 of file libcpp_string_view.h.

◆ operator basic_string< _CharT, _Traits, _Allocator >()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
template<class _Allocator >
_LIBCPP_INLINE_VISIBILITY _LIBCPP_EXPLICIT basic_string_view< _CharT, _Traits >::operator basic_string< _CharT, _Traits, _Allocator > ( ) const
inline

Definition at line 347 of file libcpp_string_view.h.

◆ operator=()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_INLINE_VISIBILITY basic_string_view& basic_string_view< _CharT, _Traits >::operator= ( const basic_string_view< _CharT, _Traits > &  )
default

◆ operator[]()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY const_reference basic_string_view< _CharT, _Traits >::operator[] ( size_type  __pos) const
inline

Definition at line 282 of file libcpp_string_view.h.

◆ rbegin()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator basic_string_view< _CharT, _Traits >::rbegin ( ) const
inline

Definition at line 256 of file libcpp_string_view.h.

◆ remove_prefix()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void basic_string_view< _CharT, _Traits >::remove_prefix ( size_type  __n)
inline

Definition at line 316 of file libcpp_string_view.h.

◆ remove_suffix()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void basic_string_view< _CharT, _Traits >::remove_suffix ( size_type  __n)
inline

Definition at line 324 of file libcpp_string_view.h.

◆ rend()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_INLINE_VISIBILITY const_reverse_iterator basic_string_view< _CharT, _Traits >::rend ( ) const
inline

Definition at line 259 of file libcpp_string_view.h.

◆ rfind() [1/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::rfind ( _CharT  __c,
size_type  __pos = npos 
) const
inline

Definition at line 453 of file libcpp_string_view.h.

◆ rfind() [2/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::rfind ( basic_string_view< _CharT, _Traits >  __s,
size_type  __pos = npos 
) const
inline

Definition at line 445 of file libcpp_string_view.h.

◆ rfind() [3/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::rfind ( const _CharT *  __s,
size_type  __pos,
size_type  __n 
) const
inline

Definition at line 460 of file libcpp_string_view.h.

◆ rfind() [4/4]

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::rfind ( const _CharT *  __s,
size_type  __pos = npos 
) const
inline

Definition at line 468 of file libcpp_string_view.h.

◆ size()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR _LIBCPP_INLINE_VISIBILITY size_type basic_string_view< _CharT, _Traits >::size ( ) const
inline

Definition at line 269 of file libcpp_string_view.h.

◆ substr()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR basic_string_view basic_string_view< _CharT, _Traits >::substr ( size_type  __pos = 0,
size_type  __n = npos 
) const
inline

Definition at line 360 of file libcpp_string_view.h.

◆ swap()

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
_LIBCPP_CONSTEXPR_AFTER_CXX11 _LIBCPP_INLINE_VISIBILITY void basic_string_view< _CharT, _Traits >::swap ( basic_string_view< _CharT, _Traits > &  __other)
inline

Definition at line 331 of file libcpp_string_view.h.

Member Data Documentation

◆ __data

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
const value_type* basic_string_view< _CharT, _Traits >::__data
private

Definition at line 598 of file libcpp_string_view.h.

◆ __size

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
size_type basic_string_view< _CharT, _Traits >::__size
private

Definition at line 599 of file libcpp_string_view.h.

◆ const_pointer

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
const typedef _CharT* basic_string_view< _CharT, _Traits >::const_pointer

Definition at line 205 of file libcpp_string_view.h.

◆ const_reference

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
const typedef _CharT& basic_string_view< _CharT, _Traits >::const_reference

Definition at line 207 of file libcpp_string_view.h.

◆ npos

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
const _LIBCPP_CONSTEXPR size_type basic_string_view< _CharT, _Traits >::npos = -1
static

Definition at line 214 of file libcpp_string_view.h.

◆ pointer

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
const typedef _CharT* basic_string_view< _CharT, _Traits >::pointer

Definition at line 204 of file libcpp_string_view.h.

◆ reference

template<class _CharT , class _Traits = _VSTD::char_traits<_CharT>>
const typedef _CharT& basic_string_view< _CharT, _Traits >::reference

Definition at line 206 of file libcpp_string_view.h.


The documentation for this class was generated from the following file: