#include <string_view.h>
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.
constexpr absl::string_view::string_view | ( | ) | [inline] |
Definition at line 162 of file string_view.h.
absl::string_view::string_view | ( | const std::basic_string< char, std::char_traits< char >, Allocator > & | str | ) | [inline] |
Definition at line 167 of file string_view.h.
constexpr absl::string_view::string_view | ( | const char * | str | ) | [inline] |
Definition at line 185 of file string_view.h.
constexpr absl::string_view::string_view | ( | const char * | data, |
size_type | len | ||
) | [inline] |
Definition at line 190 of file string_view.h.
constexpr const_reference absl::string_view::back | ( | ) | const [inline] |
Definition at line 293 of file string_view.h.
constexpr const_iterator absl::string_view::begin | ( | ) | const [inline] |
Definition at line 203 of file string_view.h.
constexpr const_iterator absl::string_view::cbegin | ( | ) | const [inline] |
Definition at line 216 of file string_view.h.
constexpr const_iterator absl::string_view::cend | ( | ) | const [inline] |
Definition at line 223 of file string_view.h.
static constexpr size_type absl::string_view::CheckLengthInternal | ( | size_type | len | ) | [inline, static, private] |
Definition at line 494 of file string_view.h.
int absl::string_view::compare | ( | string_view | x | ) | const [inline] |
Definition at line 369 of file string_view.h.
int absl::string_view::compare | ( | size_type | pos1, |
size_type | count1, | ||
string_view | v | ||
) | const [inline] |
Definition at line 383 of file string_view.h.
int absl::string_view::compare | ( | size_type | pos1, |
size_type | count1, | ||
string_view | v, | ||
size_type | pos2, | ||
size_type | count2 | ||
) | const [inline] |
Definition at line 389 of file string_view.h.
int absl::string_view::compare | ( | const char * | s | ) | const [inline] |
Definition at line 396 of file string_view.h.
int absl::string_view::compare | ( | size_type | pos1, |
size_type | count1, | ||
const char * | s | ||
) | const [inline] |
Definition at line 400 of file string_view.h.
int absl::string_view::compare | ( | size_type | pos1, |
size_type | count1, | ||
const char * | s, | ||
size_type | count2 | ||
) | const [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.
const_reverse_iterator absl::string_view::crbegin | ( | ) | const [inline] |
Definition at line 246 of file string_view.h.
const_reverse_iterator absl::string_view::crend | ( | ) | const [inline] |
Definition at line 253 of file string_view.h.
constexpr const_pointer absl::string_view::data | ( | ) | const [inline] |
Definition at line 302 of file string_view.h.
constexpr bool absl::string_view::empty | ( | ) | const [inline] |
Definition at line 277 of file string_view.h.
constexpr const_iterator absl::string_view::end | ( | ) | const [inline] |
Definition at line 210 of file string_view.h.
string_view::size_type absl::string_view::find | ( | string_view | s, |
size_type | pos = 0 |
||
) | const |
Definition at line 92 of file string_view.cc.
string_view::size_type absl::string_view::find | ( | char | c, |
size_type | pos = 0 |
||
) | const |
Definition at line 103 of file string_view.cc.
string_view::size_type absl::string_view::find_first_not_of | ( | string_view | s, |
size_type | pos = 0 |
||
) | const |
Definition at line 152 of file string_view.cc.
string_view::size_type absl::string_view::find_first_not_of | ( | char | c, |
size_type | pos = 0 |
||
) | const |
Definition at line 167 of file string_view.cc.
string_view::size_type absl::string_view::find_first_of | ( | string_view | s, |
size_type | pos = 0 |
||
) | const |
Definition at line 135 of file string_view.cc.
size_type absl::string_view::find_first_of | ( | char | c, |
size_type | pos = 0 |
||
) | const [inline] |
Definition at line 446 of file string_view.h.
string_view::size_type absl::string_view::find_last_not_of | ( | string_view | s, |
size_type | pos = npos |
||
) | const |
Definition at line 194 of file string_view.cc.
string_view::size_type absl::string_view::find_last_not_of | ( | char | c, |
size_type | pos = npos |
||
) | const |
Definition at line 212 of file string_view.cc.
string_view::size_type absl::string_view::find_last_of | ( | string_view | s, |
size_type | pos = npos |
||
) | const |
Definition at line 179 of file string_view.cc.
size_type absl::string_view::find_last_of | ( | char | c, |
size_type | pos = npos |
||
) | const [inline] |
Definition at line 461 of file string_view.h.
constexpr const_reference absl::string_view::front | ( | ) | const [inline] |
Definition at line 288 of file string_view.h.
constexpr size_type absl::string_view::length | ( | ) | const [inline] |
Definition at line 267 of file string_view.h.
constexpr size_type absl::string_view::max_size | ( | ) | const [inline] |
Definition at line 272 of file string_view.h.
absl::string_view::operator std::basic_string< char, traits_type, A > | ( | ) | const [inline, explicit] |
Definition at line 338 of file string_view.h.
constexpr const_reference absl::string_view::operator[] | ( | size_type | i | ) | const [inline] |
Definition at line 283 of file string_view.h.
const_reverse_iterator absl::string_view::rbegin | ( | ) | const [inline] |
Definition at line 229 of file string_view.h.
void absl::string_view::remove_prefix | ( | size_type | n | ) | [inline] |
Definition at line 310 of file string_view.h.
void absl::string_view::remove_suffix | ( | size_type | n | ) | [inline] |
Definition at line 320 of file string_view.h.
const_reverse_iterator absl::string_view::rend | ( | ) | const [inline] |
Definition at line 238 of file string_view.h.
string_view::size_type absl::string_view::rfind | ( | string_view | s, |
size_type | pos = npos |
||
) | const |
Definition at line 112 of file string_view.cc.
string_view::size_type absl::string_view::rfind | ( | char | c, |
size_type | pos = npos |
||
) | const |
Definition at line 122 of file string_view.cc.
constexpr size_type absl::string_view::size | ( | ) | const [inline] |
Definition at line 260 of file string_view.h.
string_view absl::string_view::substr | ( | size_type | pos, |
size_type | n = npos |
||
) | const [inline] |
Definition at line 354 of file string_view.h.
void absl::string_view::swap | ( | string_view & | s | ) | [inline] |
Definition at line 328 of file string_view.h.
ABSL_STRING_VIEW_SELECTANY constexpr string_view::size_type absl::string_view::kMaxSize [static, private] |
(std::numeric_limits<difference_type>::max)()
Definition at line 491 of file string_view.h.
size_type absl::string_view::length_ [private] |
Definition at line 499 of file string_view.h.
ABSL_STRING_VIEW_SELECTANY constexpr string_view::size_type absl::string_view::npos = static_cast<size_type>(-1) [static] |
Definition at line 159 of file string_view.h.
const char* absl::string_view::ptr_ [private] |
Definition at line 498 of file string_view.h.