|
Bifrost SDK
Bifrost SDK documentation
|
String view class (similar to std::string_view). More...
#include <StringView.h>
Public Member Functions | |
| constexpr | StringView () noexcept=default |
| Default constructor (empty string view) More... | |
| StringView (std::nullptr_t)=delete | |
| Constructing a StringView from a nullptr_t is not allowed. More... | |
| constexpr | StringView (char const *data, size_t size) noexcept |
| Constructs a string view with the given data and size. More... | |
| template<typename R , enable_if_explicitly_constructible< R > * = nullptr> | |
| AMINO_INTERNAL_FORCEINLINE constexpr | StringView (R &&r) |
StringView can be explicitly constructed from types from which std::string_view can explicitly be constructed. More... | |
| template<typename R , enable_if_implicitly_constructible< R > * = nullptr> | |
| AMINO_INTERNAL_FORCEINLINE constexpr | StringView (R &&r) |
StringView can be implicitly constructed from types from which std::string_view can implicitly be constructed. More... | |
| AMINO_INTERNAL_FORCEINLINE constexpr | operator std::string_view () const noexcept |
| std::string_view conversions More... | |
| constexpr char const * | data () const noexcept |
| Get the string view data. More... | |
| constexpr size_t | size () const noexcept |
| Get the size of the string view. More... | |
| constexpr size_t | length () const noexcept |
| Get the size of the string view. More... | |
| constexpr bool | empty () const noexcept |
| Returns whether the string view is empty or not. More... | |
| constexpr char | front () const noexcept |
| Get the first character in the string view. More... | |
| constexpr char | back () const noexcept |
| Get the last character in the string view. More... | |
| constexpr char | operator[] (size_t idx) const noexcept |
| Get the character at the given index in the string view. More... | |
| constexpr char const * | cbegin () const noexcept |
| Get an iterator to the beginning of the string view. More... | |
| constexpr char const * | begin () const noexcept |
| Get an iterator to the beginning of the string view. More... | |
| constexpr char const * | cend () const noexcept |
| Get an iterator to the end of the string view. More... | |
| constexpr char const * | end () const noexcept |
| Get an iterator to the end of the string view. More... | |
| constexpr bool | operator== (StringView o) const noexcept |
| Comparison operators. More... | |
| constexpr bool | operator< (StringView o) const noexcept |
| Comparison operators. More... | |
| constexpr bool | operator> (StringView o) const noexcept |
| Comparison operators. More... | |
| constexpr bool | operator!= (StringView o) const noexcept |
| Comparison operators. More... | |
| constexpr bool | operator<= (StringView o) const noexcept |
| Comparison operators. More... | |
| constexpr bool | operator>= (StringView o) const noexcept |
| Comparison operators. More... | |
String view class (similar to std::string_view).
Definition at line 42 of file StringView.h.
|
constexprdefaultnoexcept |
Default constructor (empty string view)
|
delete |
Constructing a StringView from a nullptr_t is not allowed.
|
inlineconstexprnoexcept |
Constructs a string view with the given data and size.
Definition at line 81 of file StringView.h.
|
inlineexplicitconstexpr |
StringView can be explicitly constructed from types from which std::string_view can explicitly be constructed.
Definition at line 87 of file StringView.h.
|
inlineconstexpr |
StringView can be implicitly constructed from types from which std::string_view can implicitly be constructed.
Definition at line 98 of file StringView.h.
|
inlineconstexprnoexcept |
Get the last character in the string view.
Definition at line 140 of file StringView.h.
|
inlineconstexprnoexcept |
Get an iterator to the beginning of the string view.
Definition at line 125 of file StringView.h.
References cbegin().
|
inlineconstexprnoexcept |
Get an iterator to the beginning of the string view.
Definition at line 124 of file StringView.h.
Referenced by begin().
|
inlineconstexprnoexcept |
Get an iterator to the end of the string view.
Definition at line 130 of file StringView.h.
Referenced by end().
|
inlineconstexprnoexcept |
Get the string view data.
Definition at line 109 of file StringView.h.
Referenced by operator std::string_view(), and Amino::MessageClass::operator==().
|
inlineconstexprnoexcept |
Returns whether the string view is empty or not.
Definition at line 120 of file StringView.h.
|
inlineconstexprnoexcept |
Get an iterator to the end of the string view.
Definition at line 131 of file StringView.h.
References cend().
|
inlineconstexprnoexcept |
Get the first character in the string view.
Definition at line 136 of file StringView.h.
|
inlineconstexprnoexcept |
Get the size of the string view.
Definition at line 117 of file StringView.h.
References size().
|
inlineconstexprnoexcept |
std::string_view conversions
Definition at line 103 of file StringView.h.
|
inlineconstexprnoexcept |
Comparison operators.
Definition at line 157 of file StringView.h.
|
inlineconstexprnoexcept |
Comparison operators.
Definition at line 151 of file StringView.h.
|
inlineconstexprnoexcept |
Comparison operators.
Definition at line 160 of file StringView.h.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Comparison operators.
Definition at line 154 of file StringView.h.
|
inlineconstexprnoexcept |
Comparison operators.
Definition at line 163 of file StringView.h.
|
inlineconstexprnoexcept |
Get the character at the given index in the string view.
Definition at line 144 of file StringView.h.
|
inlineconstexprnoexcept |
Get the size of the string view.
Definition at line 114 of file StringView.h.
Referenced by length(), operator std::string_view(), and operator==().