class string_ref
Defined at line 41 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
This class is a non owning reference to a string.
It should be a strict subset of the upcoming std::string_ref.
The constexpr is dropped or replaced with const for legacy compiler
compatibility.
Public Members
static const size_t npos
Public Methods
void string_ref ()
construct/copy.
Defined at line 51 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
void string_ref (const string_ref & other)
Defined at line 52 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
string_ref & operator= (const string_ref & rhs)
NOLINTNEXTLINE(bugprone-unhandled-self-assignment)
Defined at line 55 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
void string_ref (const char * s)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 62 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
void string_ref (const char * s, size_t l)
Defined at line 63 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
void string_ref (const std::string & s)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 65 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_iterator begin ()
iterators
Defined at line 68 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_iterator end ()
Defined at line 69 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_iterator cbegin ()
Defined at line 70 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_iterator cend ()
Defined at line 71 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_reverse_iterator rbegin ()
Defined at line 72 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_reverse_iterator rend ()
Defined at line 75 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_reverse_iterator crbegin ()
Defined at line 78 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const_reverse_iterator crend ()
Defined at line 81 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
size_t size ()
capacity
Defined at line 86 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
size_t length ()
Defined at line 87 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
size_t max_size ()
Defined at line 88 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
bool empty ()
Defined at line 89 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
const char * data ()
element access
Defined at line 92 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
int compare (string_ref x)
string operations
Defined at line 95 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
bool starts_with (string_ref x)
Defined at line 105 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
bool ends_with (string_ref x)
Defined at line 109 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
size_t find (string_ref s)
Defined at line 114 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
size_t find (char c)
Defined at line 119 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h
string_ref substr (size_t pos, size_t n)
Defined at line 124 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/string_ref.h