tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
basic_string_view.hpp File Reference

Go to the source code of this file.

Classes

struct  basic_string_view< Char, Traits >
 The class template basic_string_view describes an object that can refer to a constant contiguous sequence of char-like objects with the first element of the sequence at position zero. A typical implementation holds only two members: a pointer to constant Char and a size. More...
 

Namespaces

namespace  etl
 
namespace  etl::literals
 
namespace  etl::literals::string_view_literals
 
namespace  etl::ranges
 

Typedefs

using string_view = basic_string_view< char, etl::char_traits< char > >
 Typedef for common character type char
 
using u16string_view = basic_string_view< char16_t, etl::char_traits< char16_t > >
 Typedef for common character type char16_t
 
using u32string_view = basic_string_view< char32_t, etl::char_traits< char32_t > >
 Typedef for common character type char32_t
 
using u8string_view = basic_string_view< char8_t, etl::char_traits< char8_t > >
 Typedef for common character type char8_t
 
using wstring_view = basic_string_view< wchar_t, etl::char_traits< wchar_t > >
 Typedef for common character type wchar_t
 

Functions

template<typename Char , typename Traits >
constexpr auto operator< (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 Compares two views. All comparisons are done via the compare() member function (which itself is defined in terms of Traits::compare()):
 
template<typename Char , typename Traits , int = 2>
constexpr auto operator< (basic_string_view< Char, Traits > lhs, type_identity_t< basic_string_view< Char, Traits > > rhs) noexcept -> bool
 
template<typename Char , typename Traits , int = 1>
constexpr auto operator< (type_identity_t< basic_string_view< Char, Traits > > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 
template<typename Char , typename Traits >
constexpr auto operator<= (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 Compares two views. All comparisons are done via the compare() member function (which itself is defined in terms of Traits::compare()):
 
template<typename Char , typename Traits , int = 2>
constexpr auto operator<= (basic_string_view< Char, Traits > lhs, type_identity_t< basic_string_view< Char, Traits > > rhs) noexcept -> bool
 
template<typename Char , typename Traits , int = 1>
constexpr auto operator<= (type_identity_t< basic_string_view< Char, Traits > > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 
template<typename Char , typename Traits >
constexpr auto operator== (basic_string_view< Char, Traits > lhs, type_identity_t< basic_string_view< Char, Traits > > rhs) noexcept -> bool
 Compares two views. All comparisons are done via the compare() member function (which itself is defined in terms of Traits::compare()):
 
template<typename Char , typename Traits >
constexpr auto operator> (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 Compares two views. All comparisons are done via the compare() member function (which itself is defined in terms of Traits::compare()):
 
template<typename Char , typename Traits , int = 2>
constexpr auto operator> (basic_string_view< Char, Traits > lhs, type_identity_t< basic_string_view< Char, Traits > > rhs) noexcept -> bool
 
template<typename Char , typename Traits , int = 1>
constexpr auto operator> (type_identity_t< basic_string_view< Char, Traits > > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 
template<typename Char , typename Traits >
constexpr auto operator>= (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool
 Compares two views. All comparisons are done via the compare() member function (which itself is defined in terms of Traits::compare()):
 
template<typename Char , typename Traits , int = 2>
constexpr auto operator>= (basic_string_view< Char, Traits > lhs, type_identity_t< basic_string_view< Char, Traits > > rhs) noexcept -> bool
 
template<typename Char , typename Traits , int = 1>
constexpr auto operator>= (type_identity_t< basic_string_view< Char, Traits > > lhs, basic_string_view< Char, Traits > rhs) noexcept -> bool