This class is a non owning reference to a string.
More...
#include <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.
- See also
- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html
The constexpr is dropped or replaced with const for legacy compiler compatibility.
◆ const_reverse_iterator
◆ string_ref() [1/5]
grpc::string_ref::string_ref |
( |
| ) |
|
|
inline |
◆ string_ref() [2/5]
grpc::string_ref::string_ref |
( |
const string_ref & |
other | ) |
|
|
inline |
◆ string_ref() [3/5]
grpc::string_ref::string_ref |
( |
const char * |
s | ) |
|
|
inline |
◆ string_ref() [4/5]
grpc::string_ref::string_ref |
( |
const char * |
s, |
|
|
size_t |
l |
|
) |
| |
|
inline |
◆ string_ref() [5/5]
◆ begin()
◆ cbegin()
◆ cend()
◆ compare()
int grpc::string_ref::compare |
( |
string_ref |
x | ) |
const |
|
inline |
◆ crbegin()
◆ crend()
◆ data()
const char* grpc::string_ref::data |
( |
| ) |
const |
|
inline |
◆ empty()
bool grpc::string_ref::empty |
( |
| ) |
const |
|
inline |
◆ end()
◆ ends_with()
bool grpc::string_ref::ends_with |
( |
string_ref |
x | ) |
const |
|
inline |
◆ find() [1/2]
size_t grpc::string_ref::find |
( |
char |
c | ) |
const |
|
inline |
◆ find() [2/2]
size_t grpc::string_ref::find |
( |
string_ref |
s | ) |
const |
|
inline |
◆ length()
size_t grpc::string_ref::length |
( |
| ) |
const |
|
inline |
◆ max_size()
size_t grpc::string_ref::max_size |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ rbegin()
◆ rend()
◆ size()
size_t grpc::string_ref::size |
( |
| ) |
const |
|
inline |
◆ starts_with()
bool grpc::string_ref::starts_with |
( |
string_ref |
x | ) |
const |
|
inline |
◆ substr()
string_ref grpc::string_ref::substr |
( |
size_t |
pos, |
|
|
size_t |
n = npos |
|
) |
| const |
|
inline |
◆ const_iterator
const typedef char* grpc::string_ref::const_iterator |
◆ npos
const static size_t grpc::string_ref::npos |
|
static |
The documentation for this class was generated from the following file: