Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_STRING_REF_H
20 #define GRPCPP_IMPL_CODEGEN_STRING_REF_H
99 int r = memcmp(
data_,
x.data_, min_size);
100 if (
r < 0)
return -1;
108 return length_ >=
x.length_ && (memcmp(
data_,
x.data_,
x.length_) == 0);
151 #endif // GRPCPP_IMPL_CODEGEN_STRING_REF_H
bool ends_with(string_ref x) const
string_ref(const char *s, size_t l)
bool operator==(string_ref x, string_ref y)
Comparison operators.
const typedef char * const_iterator
types
static void ** find(grpc_chttp2_stream_map *map, uint32_t key)
bool starts_with(string_ref x) const
string_ref & operator=(const string_ref &rhs)
int compare(string_ref x) const
string operations
size_t find(string_ref s) const
const_iterator cend() const
bool operator>=(string_ref x, string_ref y)
bool operator<(string_ref x, string_ref y)
const static size_t npos
constants
string_ref(const string_ref &other)
bool operator<=(string_ref x, string_ref y)
string_ref(const char *s)
const_reverse_iterator rbegin() const
def search(target, ideal_distance, stop_event, maximum_hashes, interesting_hamming_distance=None)
string_ref substr(size_t pos, size_t n=npos) const
bool operator>(string_ref x, string_ref y)
const_iterator end() const
const_iterator begin() const
iterators
string_ref()
construct/copy.
bool operator!=(string_ref x, string_ref y)
const char * data() const
element access
std::reverse_iterator< const_iterator > const_reverse_iterator
const_iterator cbegin() const
string_ref(const std::string &s)
const_reverse_iterator crbegin() const
const_reverse_iterator rend() const
size_t size() const
capacity
size_t find(char c) const
const_reverse_iterator crend() const
std::ostream & operator<<(std::ostream &out, const string_ref &string)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:21