class string_ref
Defined at line 40 of file ../../third_party/grpc/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 50 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
void string_ref (const string_ref & other)
Defined at line 51 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
string_ref & operator= (const string_ref & rhs)
NOLINTNEXTLINE(bugprone-unhandled-self-assignment)
Defined at line 54 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
void string_ref (const char * s)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 61 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
void string_ref (const char * s, size_t l)
Defined at line 62 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
void string_ref (const std::string & s)
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 64 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_iterator begin ()
iterators
Defined at line 67 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_iterator end ()
Defined at line 68 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_iterator cbegin ()
Defined at line 69 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_iterator cend ()
Defined at line 70 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_reverse_iterator rbegin ()
Defined at line 71 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_reverse_iterator rend ()
Defined at line 74 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_reverse_iterator crbegin ()
Defined at line 77 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const_reverse_iterator crend ()
Defined at line 80 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
size_t size ()
capacity
Defined at line 85 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
size_t length ()
Defined at line 86 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
size_t max_size ()
Defined at line 87 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
bool empty ()
Defined at line 88 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
const char * data ()
element access
Defined at line 91 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
int compare (string_ref x)
string operations
Defined at line 94 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
bool starts_with (string_ref x)
Defined at line 104 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
bool ends_with (string_ref x)
Defined at line 108 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
size_t find (string_ref s)
Defined at line 113 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
size_t find (char c)
Defined at line 118 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h
string_ref substr (size_t pos, size_t n)
Defined at line 123 of file ../../third_party/grpc/src/include/grpcpp/support/string_ref.h