template<typename charT, typename traits = std::char_traits<charT>>
nn::util::basic_string_view class

Public types

using self_type = basic_string_view<charT, traits>
using const_pointer = const charT*
using const_reference = const charT&
using const_iterator = const_pointer
using const_reverse_iterator = std::reverse_iterator<const_iterator>
using size_type = size_t

Public static variables

static const size_type npos

Constructors, destructors, conversion operators

basic_string_view()
basic_string_view(const_pointer str, size_type len)
basic_string_view(const_pointer str)

Public functions

auto begin() const -> const_pointer
auto end() const -> const_pointer
auto cbegin() const -> const_pointer
auto cend() const -> const_pointer
auto rbegin() const -> const_reverse_iterator
auto rend() const -> const_reverse_iterator
auto crbegin() const -> const_reverse_iterator
auto crend() const -> const_reverse_iterator
auto size() const -> size_type
auto length() const -> size_type
auto data() const -> const_pointer
auto empty() const -> bool
auto substr(size_type pos = 0, size_type n = npos) const -> self_type
auto operator[](size_type pos) const -> const_reference
auto at(size_type pos) const -> const_reference
auto front() const -> const_reference
auto back() const -> const_reference
void clear()
void remove_prefix(size_type n)
void remove_suffix(size_type n)
auto compare(const self_type& str) const -> int
auto compare(const_pointer str) const -> int
auto find(const self_type& str, size_type pos = 0) const -> size_type
auto find(charT c, size_type pos = 0) const -> size_type
auto find(const_pointer str, size_type pos = 0) const -> size_type
auto rfind(const self_type& str, size_type pos = 0) const -> size_type
auto rfind(charT c, size_type pos = 0) const -> size_type
auto rfind(const_pointer str, size_type pos = 0) const -> size_type
auto find_first_of(const self_type& str, size_type pos = 0) const -> size_type
auto find_first_of(const_pointer str, size_type pos = 0) const -> size_type
auto find_last_of(const self_type& str, size_type pos = 0) const -> size_type
auto find_last_of(const_pointer str, size_type pos = 0) const -> size_type
auto find_first_not_of(const self_type& str, size_type pos = 0) const -> size_type
auto find_first_not_of(charT c, size_type pos = 0) const -> size_type
auto find_first_not_of(const_pointer str, size_type pos = 0) const -> size_type
auto find_last_not_of(const self_type& str, size_type pos = 0) const -> size_type
auto find_last_not_of(charT c, size_type pos = 0) const -> size_type
auto find_last_not_of(const_pointer str, size_type pos = 0) const -> size_type

Friends

auto operator==(const basic_string_view& lhs, const basic_string_view& rhs) -> bool
auto operator!=(const basic_string_view& lhs, const basic_string_view& rhs) -> bool