#include <string_view.h>
Public Types | |
using | const_iterator = const char * |
using | const_pointer = const char * |
using | const_reference = const char & |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | difference_type = std::ptrdiff_t |
using | iterator = const_iterator |
using | pointer = char * |
using | reference = char & |
using | reverse_iterator = const_reverse_iterator |
using | size_type = size_t |
using | traits_type = std::char_traits< char > |
using | value_type = char |
Public Member Functions | |
constexpr const_reference | back () const |
constexpr const_iterator | begin () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
int | compare (string_view x) const noexcept |
int | compare (size_type pos1, size_type count1, string_view v) const |
int | compare (size_type pos1, size_type count1, string_view v, size_type pos2, size_type count2) const |
int | compare (const char *s) const |
int | compare (size_type pos1, size_type count1, const char *s) const |
int | compare (size_type pos1, size_type count1, const char *s, size_type count2) const |
size_type | copy (char *buf, size_type n, size_type pos=0) const |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | crend () const noexcept |
constexpr const_pointer | data () const noexcept |
constexpr bool | empty () const noexcept |
constexpr const_iterator | end () const noexcept |
size_type | find (string_view s, size_type pos=0) const noexcept |
size_type | find (char c, size_type pos=0) const noexcept |
size_type | find_first_not_of (string_view s, size_type pos=0) const noexcept |
size_type | find_first_not_of (char c, size_type pos=0) const noexcept |
size_type | find_first_of (string_view s, size_type pos=0) const noexcept |
size_type | find_first_of (char c, size_type pos=0) const noexcept |
size_type | find_last_not_of (string_view s, size_type pos=npos) const noexcept |
size_type | find_last_not_of (char c, size_type pos=npos) const noexcept |
size_type | find_last_of (string_view s, size_type pos=npos) const noexcept |
size_type | find_last_of (char c, size_type pos=npos) const noexcept |
constexpr const_reference | front () const |
constexpr size_type | length () const noexcept |
constexpr size_type | max_size () const noexcept |
template<typename A > | |
operator std::basic_string< char, traits_type, A > () const | |
constexpr const_reference | operator[] (size_type i) const |
const_reverse_iterator | rbegin () const noexcept |
void | remove_prefix (size_type n) |
void | remove_suffix (size_type n) |
const_reverse_iterator | rend () const noexcept |
size_type | rfind (string_view s, size_type pos=npos) const noexcept |
size_type | rfind (char c, size_type pos=npos) const noexcept |
constexpr size_type | size () const noexcept |
constexpr | string_view () noexcept |
template<typename Allocator > | |
string_view (const std::basic_string< char, std::char_traits< char >, Allocator > &str) noexcept | |
constexpr | string_view (const char *str) |
constexpr | string_view (const char *data, size_type len) |
string_view | substr (size_type pos, size_type n=npos) const |
void | swap (string_view &s) noexcept |
Static Public Attributes | |
static constexpr size_type | npos = static_cast<size_type>(-1) |
Static Private Member Functions | |
static constexpr size_type | CheckLengthInternal (size_type len) |
Private Attributes | |
size_type | length_ |
const char * | ptr_ |
Static Private Attributes | |
static constexpr size_type | kMaxSize |
Definition at line 144 of file string_view.h.
using absl::string_view::const_iterator = const char* |
Definition at line 152 of file string_view.h.
using absl::string_view::const_pointer = const char* |
Definition at line 149 of file string_view.h.
using absl::string_view::const_reference = const char& |
Definition at line 151 of file string_view.h.
using absl::string_view::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 154 of file string_view.h.
using absl::string_view::difference_type = std::ptrdiff_t |
Definition at line 157 of file string_view.h.
Definition at line 153 of file string_view.h.
using absl::string_view::pointer = char* |
Definition at line 148 of file string_view.h.
using absl::string_view::reference = char& |
Definition at line 150 of file string_view.h.
Definition at line 155 of file string_view.h.
using absl::string_view::size_type = size_t |
Definition at line 156 of file string_view.h.
using absl::string_view::traits_type = std::char_traits<char> |
Definition at line 146 of file string_view.h.
using absl::string_view::value_type = char |
Definition at line 147 of file string_view.h.
|
inlinenoexcept |
Definition at line 162 of file string_view.h.
|
inlinenoexcept |
Definition at line 167 of file string_view.h.
|
inline |
Definition at line 185 of file string_view.h.
|
inline |
Definition at line 190 of file string_view.h.
|
inline |
Definition at line 293 of file string_view.h.
|
inlinenoexcept |
Definition at line 203 of file string_view.h.
|
inlinenoexcept |
Definition at line 216 of file string_view.h.
|
inlinenoexcept |
Definition at line 223 of file string_view.h.
|
inlinestaticprivate |
Definition at line 494 of file string_view.h.
|
inlinenoexcept |
Definition at line 369 of file string_view.h.
|
inline |
Definition at line 383 of file string_view.h.
|
inline |
Definition at line 389 of file string_view.h.
|
inline |
Definition at line 396 of file string_view.h.
Definition at line 400 of file string_view.h.
|
inline |
Definition at line 406 of file string_view.h.
string_view::size_type absl::string_view::copy | ( | char * | buf, |
size_type | n, | ||
size_type | pos = 0 |
||
) | const |
Definition at line 80 of file string_view.cc.
|
inlinenoexcept |
Definition at line 246 of file string_view.h.
|
inlinenoexcept |
Definition at line 253 of file string_view.h.
|
inlinenoexcept |
Definition at line 302 of file string_view.h.
|
inlinenoexcept |
Definition at line 277 of file string_view.h.
|
inlinenoexcept |
Definition at line 210 of file string_view.h.
|
noexcept |
Definition at line 92 of file string_view.cc.
|
noexcept |
Definition at line 103 of file string_view.cc.
|
noexcept |
Definition at line 152 of file string_view.cc.
|
noexcept |
Definition at line 167 of file string_view.cc.
|
noexcept |
Definition at line 135 of file string_view.cc.
Definition at line 446 of file string_view.h.
|
noexcept |
Definition at line 194 of file string_view.cc.
|
noexcept |
Definition at line 212 of file string_view.cc.
|
noexcept |
Definition at line 179 of file string_view.cc.
Definition at line 461 of file string_view.h.
|
inline |
Definition at line 288 of file string_view.h.
|
inlinenoexcept |
Definition at line 267 of file string_view.h.
|
inlinenoexcept |
Definition at line 272 of file string_view.h.
|
inlineexplicit |
Definition at line 338 of file string_view.h.
|
inline |
Definition at line 283 of file string_view.h.
|
inlinenoexcept |
Definition at line 229 of file string_view.h.
|
inline |
Definition at line 310 of file string_view.h.
|
inline |
Definition at line 320 of file string_view.h.
|
inlinenoexcept |
Definition at line 238 of file string_view.h.
|
noexcept |
Definition at line 112 of file string_view.cc.
|
noexcept |
Definition at line 122 of file string_view.cc.
|
inlinenoexcept |
Definition at line 260 of file string_view.h.
|
inline |
Definition at line 354 of file string_view.h.
|
inlinenoexcept |
Definition at line 328 of file string_view.h.
|
staticprivate |
Definition at line 491 of file string_view.h.
|
private |
Definition at line 499 of file string_view.h.
|
static |
Definition at line 159 of file string_view.h.
|
private |
Definition at line 498 of file string_view.h.