Back port of std::string_view to work with pre-cpp-17 compilers.
Note: This provides a subset of the methods available on std::string_view but tries to be as compatible as possible with the std::string_view interface.
Definition at line 37 of file includes/opentelemetry/nostd/string_view.h.
Public Types | |
| typedef std::size_t | size_type |
| typedef std::size_t | size_type |
Public Member Functions | |
| string_view () noexcept | |
| string_view (const char *str) noexcept | |
| string_view (const std::basic_string< char > &str OPENTELEMETRY_ATTRIBUTE_LIFETIME_BOUND) noexcept | |
| string_view (const char *str, size_type len) noexcept | |
| operator std::string () const | |
| const char * | data () const noexcept |
| bool | empty () const noexcept |
| size_type | length () const noexcept |
| size_type | size () const noexcept |
| const char * | begin () const noexcept |
| const char * | end () const noexcept |
| const char & | operator[] (size_type i) |
| string_view | substr (size_type pos, size_type n=npos) const |
| int | compare (string_view v) const noexcept |
| int | compare (size_type pos1, size_type count1, string_view v) const |
| int | compare (size_type pos1, size_type count1, string_view v, size_type pos2, size_type count2) const |
| int | compare (const char *s) const |
| int | compare (size_type pos1, size_type count1, const char *s) const |
| int | compare (size_type pos1, size_type count1, const char *s, size_type count2) const |
| size_type | find (char ch, size_type pos=0) const noexcept |
| bool | operator< (const string_view v) const noexcept |
| bool | operator> (const string_view v) const noexcept |
| string_view () noexcept | |
| string_view (const char *str) noexcept | |
| string_view (const std::basic_string< char > &str OPENTELEMETRY_ATTRIBUTE_LIFETIME_BOUND) noexcept | |
| string_view (const char *str, size_type len) noexcept | |
| operator std::string () const | |
| const char * | data () const noexcept |
| bool | empty () const noexcept |
| size_type | length () const noexcept |
| size_type | size () const noexcept |
| const char * | begin () const noexcept |
| const char * | end () const noexcept |
| const char & | operator[] (size_type i) |
| string_view | substr (size_type pos, size_type n=npos) const |
| int | compare (string_view v) const noexcept |
| int | compare (size_type pos1, size_type count1, string_view v) const |
| int | compare (size_type pos1, size_type count1, string_view v, size_type pos2, size_type count2) const |
| int | compare (const char *s) const |
| int | compare (size_type pos1, size_type count1, const char *s) const |
| int | compare (size_type pos1, size_type count1, const char *s, size_type count2) const |
| size_type | find (char ch, size_type pos=0) const noexcept |
| bool | operator< (const string_view v) const noexcept |
| bool | operator> (const string_view v) const noexcept |
Static Public Attributes | |
| static constexpr size_type | npos = static_cast<size_type>(-1) |
| typedef std::size_t nostd::string_view::size_type |
Definition at line 40 of file includes/opentelemetry/nostd/string_view.h.
| typedef std::size_t nostd::string_view::size_type |
Definition at line 40 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 44 of file includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 46 of file includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 48 of file includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 52 of file includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 44 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 46 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 48 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 52 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 64 of file includes/opentelemetry/nostd/string_view.h.
References data().
Referenced by trace::propagation::detail::IsValidHex().
|
inlinenoexcept |
Definition at line 64 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References data().
|
inline |
Definition at line 107 of file includes/opentelemetry/nostd/string_view.h.
References compare(), and string_view().
Referenced by compare().
|
inline |
Definition at line 107 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References compare(), and string_view().
Referenced by compare().
Definition at line 109 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References compare(), string_view(), and substr().
Definition at line 109 of file includes/opentelemetry/nostd/string_view.h.
References compare(), string_view(), and substr().
|
inline |
Definition at line 114 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References compare(), string_view(), and substr().
|
inline |
Definition at line 114 of file includes/opentelemetry/nostd/string_view.h.
References compare(), string_view(), and substr().
|
inline |
Definition at line 93 of file includes/opentelemetry/nostd/string_view.h.
|
inline |
Definition at line 93 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inline |
Definition at line 98 of file includes/opentelemetry/nostd/string_view.h.
|
inline |
Definition at line 98 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 84 of file includes/opentelemetry/nostd/string_view.h.
References data(), min(), and size().
Referenced by compare(), operator<(), and operator>().
|
inlinenoexcept |
Definition at line 84 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 56 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 56 of file includes/opentelemetry/nostd/string_view.h.
Referenced by begin(), compare(), end(), find(), baggage::Baggage::FromHeader(), ext::http::client::HttpSslOptions::HttpSslOptions(), nostd::operator<<(), operator[](), sdk::trace::SpanData::SetName(), and trace::TraceState::ToHeader().
|
inlinenoexcept |
Definition at line 58 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 58 of file includes/opentelemetry/nostd/string_view.h.
Referenced by baggage::Baggage::FromHeader().
|
inlinenoexcept |
Definition at line 66 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 66 of file includes/opentelemetry/nostd/string_view.h.
References data(), and length().
Referenced by trace::propagation::detail::IsValidHex().
Definition at line 119 of file includes/opentelemetry/nostd/string_view.h.
References data(), pydeepstreamdoc::node::NodeDoc::find, length(), and npos.
Referenced by baggage::Baggage::FromHeader(), common::KeyValueStringTokenizer::next(), common::KeyValueStringTokenizer::NumTokens(), and baggage::Baggage::ToHeader().
Definition at line 119 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References data(), pydeepstreamdoc::node::NodeDoc::find, length(), and npos.
|
inlinenoexcept |
Definition at line 60 of file includes/opentelemetry/nostd/string_view.h.
Referenced by end(), find(), nostd::operator<<(), sdk::trace::SpanData::SetName(), and trace::propagation::B3PropagatorExtractor::TraceFlagsFromHex().
|
inlinenoexcept |
Definition at line 60 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlineexplicit |
Definition at line 54 of file includes/opentelemetry/nostd/string_view.h.
|
inlineexplicit |
Definition at line 54 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inlinenoexcept |
Definition at line 133 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References compare().
|
inlinenoexcept |
Definition at line 133 of file includes/opentelemetry/nostd/string_view.h.
References compare().
|
inlinenoexcept |
Definition at line 135 of file includes/opentelemetry/nostd/string_view.h.
References compare().
|
inlinenoexcept |
Definition at line 135 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References compare().
|
inline |
Definition at line 68 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References data().
|
inline |
Definition at line 68 of file includes/opentelemetry/nostd/string_view.h.
References data().
|
inlinenoexcept |
Definition at line 62 of file includes/opentelemetry/nostd/string_view.h.
Referenced by compare(), baggage::Baggage::FromHeader(), trace::propagation::detail::HexToBinary(), common::KeyValueStringTokenizer::next(), common::KeyValueStringTokenizer::NumTokens(), trace::propagation::detail::SplitString(), and trace::TraceState::ToHeader().
|
inlinenoexcept |
Definition at line 62 of file 9.2/includes/opentelemetry/nostd/string_view.h.
|
inline |
Definition at line 70 of file includes/opentelemetry/nostd/string_view.h.
References min(), string_view(), and pydeepstreamdoc::signalemitter::SourceManagerDoc::terminate.
Referenced by compare(), baggage::Baggage::FromHeader(), trace::propagation::detail::SplitString(), baggage::Baggage::ToHeader(), and common::StringUtil::Trim().
|
inline |
Definition at line 70 of file 9.2/includes/opentelemetry/nostd/string_view.h.
References min(), string_view(), and pydeepstreamdoc::signalemitter::SourceManagerDoc::terminate.
Definition at line 42 of file includes/opentelemetry/nostd/string_view.h.
Referenced by find().