#include <string_ref.h>
Public Types | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
const_iterator | begin () const |
iterators More... | |
const_iterator | cbegin () const |
const_iterator | cend () const |
int | compare (string_ref x) const |
string operations More... | |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
const char * | data () const |
element access More... | |
bool | empty () const |
const_iterator | end () const |
bool | ends_with (string_ref x) const |
size_t | find (char c) const |
size_t | find (string_ref s) const |
size_t | length () const |
size_t | max_size () const |
string_ref & | operator= (const string_ref &rhs) |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
size_t | size () const |
capacity More... | |
bool | starts_with (string_ref x) const |
string_ref () | |
construct/copy. More... | |
string_ref (const char *s) | |
string_ref (const char *s, size_t l) | |
string_ref (const std::string &s) | |
string_ref (const string_ref &other) | |
string_ref | substr (size_t pos, size_t n=npos) const |
Public Attributes | |
const typedef char * | const_iterator |
types More... | |
Static Public Attributes | |
const static size_t | npos = size_t(-1) |
constants More... | |
Private Attributes | |
const char * | data_ |
size_t | length_ |
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.
Definition at line 43 of file grpcpp/impl/codegen/string_ref.h.
typedef std::reverse_iterator<const_iterator> grpc::string_ref::const_reverse_iterator |
Definition at line 47 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
construct/copy.
Definition at line 53 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 54 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 64 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 65 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 67 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
iterators
Definition at line 70 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 72 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 73 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
string operations
Definition at line 97 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 80 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 83 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
element access
Definition at line 94 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 91 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 71 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 111 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 121 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 116 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 89 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 90 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 57 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 74 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 77 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
capacity
Definition at line 88 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 107 of file grpcpp/impl/codegen/string_ref.h.
|
inline |
Definition at line 126 of file grpcpp/impl/codegen/string_ref.h.
const typedef char* grpc::string_ref::const_iterator |
types
Definition at line 46 of file grpcpp/impl/codegen/string_ref.h.
|
private |
Definition at line 133 of file grpcpp/impl/codegen/string_ref.h.
|
private |
Definition at line 134 of file grpcpp/impl/codegen/string_ref.h.
|
static |
constants
Definition at line 50 of file grpcpp/impl/codegen/string_ref.h.