template<typename charT, typename traits = std::char_traits<charT>>
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
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