|
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_view & | operator= (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 |
|
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.)