JASL  [1.2.0]-2018-09-11
Public Types | Public Member Functions | Static Public Attributes | List of all members
jasl::nonstd::basic_string_view< CharT, Traits > Class Template Reference

Public Types

typedef Traits traits_type
 
typedef CharT value_type
 
typedef CharT * pointer
 
typedef const CharT * const_pointer
 
typedef CharT & reference
 
typedef const CharT & const_reference
 
typedef const_pointer const_iterator
 
typedef const_iterator iterator
 
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
 
typedef const_reverse_iterator reverse_iterator
 
typedef size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

constexpr basic_string_view (const CharT *ptr, size_type size) noexcept
 
constexpr basic_string_view (const basic_string_view &other) noexcept
 
JASL_CONSTEXPR_CXX14 basic_string_viewoperator= (const basic_string_view &other) noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
constexpr const_reverse_iterator rbegin () const noexcept
 
constexpr const_reverse_iterator rend () const noexcept
 
constexpr const_reverse_iterator crbegin () const noexcept
 
constexpr const_reverse_iterator crend () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr const CharT * data () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr size_type length () const noexcept
 
constexpr const_reference operator[] (size_type pos) const
 
JASL_CONSTEXPR_CXX14 const_reference at (size_type pos) const
 
constexpr const_reference front () const noexcept
 
constexpr const_reference back () const noexcept
 
JASL_CONSTEXPR_CXX14 void swap (basic_string_view &other) noexcept
 
size_type copy (CharT *s, size_type n, size_type pos=0) const
 
JASL_CONSTEXPR_CXX14 basic_string_view substr (size_type pos, size_type count=npos) const
 
JASL_CONSTEXPR_CXX14 void remove_prefix (size_type n) noexcept
 
JASL_CONSTEXPR_CXX14 void remove_suffix (size_type n) noexcept
 
JASL_CONSTEXPR_CXX14 int compare (const basic_string_view &right) const noexcept
 
JASL_CONSTEXPR_CXX14 size_type find (const basic_string_view &s) const noexcept
 

Static Public Attributes

static constexpr size_type npos = static_cast<size_type>(-1)
 

Detailed Description

template<typename CharT, typename Traits>
class jasl::nonstd::basic_string_view< CharT, Traits >

This class is an optinal substitution of the [std::string_view] for those who have no C++17. To use this as the base class, define JASL_USE_JASL_STRING_VIEW_AS_BASE. The class only has basic functionality. (Please open an issue or endorse an existing if you would like to add some functionality.)


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