Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
absl::string_view Class Reference

#include <string_view.h>

Classes

struct  SkipCheckLengthTag
 

Public Types

using const_iterator = const char *
 
using const_iterator = const char *
 
using const_pointer = const char *
 
using const_pointer = const char *
 
using const_reference = const char &
 
using const_reference = const char &
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using difference_type = std::ptrdiff_t
 
using difference_type = std::ptrdiff_t
 
using iterator = const_iterator
 
using iterator = const_iterator
 
using pointer = char *
 
using pointer = char *
 
using reference = char &
 
using reference = char &
 
using reverse_iterator = const_reverse_iterator
 
using reverse_iterator = const_reverse_iterator
 
using size_type = size_t
 
using size_type = size_t
 
using traits_type = std::char_traits< char >
 
using traits_type = std::char_traits< char >
 
using value_type = char
 
using value_type = char
 

Public Member Functions

constexpr const_reference at (size_type i) const
 
constexpr const_reference at (size_type i) const
 
constexpr const_reference back () const
 
constexpr const_reference back () const
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
constexpr const_iterator cend () const noexcept
 
int compare (const char *s) const
 
constexpr int compare (const char *s) const
 
int compare (size_type pos1, size_type count1, const char *s) const
 
constexpr 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
 
constexpr int compare (size_type pos1, size_type count1, const char *s, size_type count2) const
 
int compare (size_type pos1, size_type count1, string_view v) const
 
constexpr 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
 
constexpr int compare (size_type pos1, size_type count1, string_view v, size_type pos2, size_type count2) const
 
constexpr int compare (string_view x) const noexcept
 
constexpr int compare (string_view x) const noexcept
 
size_type copy (char *buf, size_type n, size_type pos=0) const
 
size_type copy (char *buf, size_type n, size_type pos=0) const
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
const_reverse_iterator crend () const noexcept
 
constexpr const_pointer data () const noexcept
 
constexpr const_pointer data () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr const_iterator end () const noexcept
 
size_type find (char c, size_type pos=0) const noexcept
 
size_type find (char c, size_type pos=0) const noexcept
 
size_type find (const char *s, size_type pos, size_type count) const
 
size_type find (const char *s, size_type pos=0) const
 
size_type find (string_view s, size_type pos=0) const noexcept
 
size_type find (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_not_of (char c, size_type pos=0) const noexcept
 
size_type find_first_not_of (const char *s, size_type pos, size_type count) const
 
size_type find_first_not_of (const char *s, size_type pos=0) const
 
size_type find_first_not_of (string_view s, 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_of (char c, size_type pos=0) const noexcept
 
size_type find_first_of (char c, size_type pos=0) const noexcept
 
size_type find_first_of (const char *s, size_type pos, size_type count) const
 
size_type find_first_of (const char *s, size_type pos=0) const
 
size_type find_first_of (string_view s, size_type pos=0) const noexcept
 
size_type find_first_of (string_view s, size_type pos=0) const noexcept
 
size_type find_last_not_of (char c, size_type pos=npos) const noexcept
 
size_type find_last_not_of (char c, size_type pos=npos) const noexcept
 
size_type find_last_not_of (const char *s, size_type pos, size_type count) const
 
size_type find_last_not_of (const char *s, size_type pos=npos) const
 
size_type find_last_not_of (string_view s, size_type pos=npos) const noexcept
 
size_type find_last_not_of (string_view s, size_type pos=npos) const noexcept
 
size_type find_last_of (char c, size_type pos=npos) const noexcept
 
size_type find_last_of (char c, size_type pos=npos) const noexcept
 
size_type find_last_of (const char *s, size_type pos, size_type count) const
 
size_type find_last_of (const char *s, size_type pos=npos) const
 
size_type find_last_of (string_view s, size_type pos=npos) const noexcept
 
size_type find_last_of (string_view s, size_type pos=npos) const noexcept
 
constexpr const_reference front () const
 
constexpr const_reference front () const
 
constexpr size_type length () const noexcept
 
constexpr size_type length () const noexcept
 
constexpr size_type max_size () const noexcept
 
constexpr size_type max_size () const noexcept
 
template<typename A >
 operator std::basic_string< char, traits_type, A > () const
 
template<typename A >
 operator std::basic_string< char, traits_type, A > () const
 
constexpr const_reference operator[] (size_type i) const
 
constexpr const_reference operator[] (size_type i) const
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator rbegin () const noexcept
 
void remove_prefix (size_type n)
 
ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void remove_prefix (size_type n)
 
void remove_suffix (size_type n)
 
ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void remove_suffix (size_type n)
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator rend () const noexcept
 
size_type rfind (char c, size_type pos=npos) const noexcept
 
size_type rfind (char c, size_type pos=npos) const noexcept
 
size_type rfind (const char *s, size_type pos, size_type count) const
 
size_type rfind (const char *s, size_type pos=npos) const
 
size_type rfind (string_view s, size_type pos=npos) const noexcept
 
size_type rfind (string_view s, size_type pos=npos) const noexcept
 
constexpr size_type size () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr string_view () noexcept
 
constexpr string_view () noexcept
 
constexpr string_view (const char *data, size_type len)
 
constexpr string_view (const char *data, size_type len)
 
constexpr string_view (const char *str)
 
constexpr string_view (const char *str)
 
template<typename Allocator >
 string_view (const std::basic_string< char, std::char_traits< char >, Allocator > &str ABSL_ATTRIBUTE_LIFETIME_BOUND) noexcept
 
template<typename Allocator >
 string_view (const std::basic_string< char, std::char_traits< char >, Allocator > &str ABSL_ATTRIBUTE_LIFETIME_BOUND) noexcept
 
constexpr string_view substr (size_type pos, size_type n=npos) const
 
constexpr string_view substr (size_type pos=0, size_type n=npos) const
 
void swap (string_view &s) noexcept
 
ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void swap (string_view &s) noexcept
 

Static Public Attributes

static constexpr size_type npos = static_cast<size_type>(-1)
 

Private Member Functions

 string_view (const char *data, size_type len, SkipCheckLengthTag) noexcept
 

Static Private Member Functions

static constexpr size_type CheckLengthInternal (size_type len)
 
static constexpr size_type CheckLengthInternal (size_type len)
 
static constexpr int CompareImpl (size_type length_a, size_type length_b, int compare_result)
 
static constexpr int CompareImpl (size_type length_a, size_type length_b, int compare_result)
 
static constexpr size_t Min (size_type length_a, size_type length_b)
 
static constexpr size_t Min (size_type length_a, size_type length_b)
 
static constexpr size_type StrlenInternal (const char *str)
 
static constexpr size_type StrlenInternal (const char *str)
 

Private Attributes

size_type length_
 
const char * ptr_
 

Static Private Attributes

static constexpr size_type kMaxSize
 

Detailed Description

Definition at line 167 of file abseil-cpp/absl/strings/string_view.h.

Member Typedef Documentation

◆ const_iterator [1/2]

◆ const_iterator [2/2]

Definition at line 175 of file abseil-cpp/absl/strings/string_view.h.

◆ const_pointer [1/2]

◆ const_pointer [2/2]

Definition at line 172 of file abseil-cpp/absl/strings/string_view.h.

◆ const_reference [1/2]

◆ const_reference [2/2]

Definition at line 174 of file abseil-cpp/absl/strings/string_view.h.

◆ const_reverse_iterator [1/2]

◆ const_reverse_iterator [2/2]

Definition at line 177 of file abseil-cpp/absl/strings/string_view.h.

◆ difference_type [1/2]

using absl::string_view::difference_type = std::ptrdiff_t

◆ difference_type [2/2]

using absl::string_view::difference_type = std::ptrdiff_t

Definition at line 180 of file abseil-cpp/absl/strings/string_view.h.

◆ iterator [1/2]

◆ iterator [2/2]

Definition at line 176 of file abseil-cpp/absl/strings/string_view.h.

◆ pointer [1/2]

◆ pointer [2/2]

Definition at line 171 of file abseil-cpp/absl/strings/string_view.h.

◆ reference [1/2]

◆ reference [2/2]

Definition at line 173 of file abseil-cpp/absl/strings/string_view.h.

◆ reverse_iterator [1/2]

◆ reverse_iterator [2/2]

Definition at line 178 of file abseil-cpp/absl/strings/string_view.h.

◆ size_type [1/2]

◆ size_type [2/2]

Definition at line 179 of file abseil-cpp/absl/strings/string_view.h.

◆ traits_type [1/2]

using absl::string_view::traits_type = std::char_traits<char>

◆ traits_type [2/2]

using absl::string_view::traits_type = std::char_traits<char>

Definition at line 169 of file abseil-cpp/absl/strings/string_view.h.

◆ value_type [1/2]

◆ value_type [2/2]

Definition at line 170 of file abseil-cpp/absl/strings/string_view.h.

Constructor & Destructor Documentation

◆ string_view() [1/9]

constexpr absl::string_view::string_view ( )
inlineconstexprnoexcept

Definition at line 185 of file abseil-cpp/absl/strings/string_view.h.

◆ string_view() [2/9]

template<typename Allocator >
absl::string_view::string_view ( const std::basic_string< char, std::char_traits< char >, Allocator > &str  ABSL_ATTRIBUTE_LIFETIME_BOUND)
inlinenoexcept

Definition at line 190 of file abseil-cpp/absl/strings/string_view.h.

◆ string_view() [3/9]

constexpr absl::string_view::string_view ( const char *  str)
inlineconstexpr

Definition at line 203 of file abseil-cpp/absl/strings/string_view.h.

◆ string_view() [4/9]

constexpr absl::string_view::string_view ( const char *  data,
size_type  len 
)
inlineconstexpr

Definition at line 207 of file abseil-cpp/absl/strings/string_view.h.

◆ string_view() [5/9]

absl::string_view::string_view ( const char *  data,
size_type  len,
SkipCheckLengthTag   
)
inlineprivatenoexcept

Definition at line 603 of file abseil-cpp/absl/strings/string_view.h.

◆ string_view() [6/9]

constexpr absl::string_view::string_view ( )
inlineconstexprnoexcept

◆ string_view() [7/9]

template<typename Allocator >
absl::string_view::string_view ( const std::basic_string< char, std::char_traits< char >, Allocator > &str  ABSL_ATTRIBUTE_LIFETIME_BOUND)
inlinenoexcept

◆ string_view() [8/9]

constexpr absl::string_view::string_view ( const char *  str)
inlineconstexpr

◆ string_view() [9/9]

constexpr absl::string_view::string_view ( const char *  data,
size_type  len 
)
inlineconstexpr

Member Function Documentation

◆ at() [1/2]

constexpr const_reference absl::string_view::at ( size_type  i) const
inlineconstexpr

◆ at() [2/2]

constexpr const_reference absl::string_view::at ( size_type  i) const
inlineconstexpr

Definition at line 307 of file abseil-cpp/absl/strings/string_view.h.

◆ back() [1/2]

constexpr const_reference absl::string_view::back ( ) const
inlineconstexpr

◆ back() [2/2]

constexpr const_reference absl::string_view::back ( ) const
inlineconstexpr

Definition at line 325 of file abseil-cpp/absl/strings/string_view.h.

◆ begin() [1/2]

constexpr const_iterator absl::string_view::begin ( ) const
inlineconstexprnoexcept

◆ begin() [2/2]

constexpr const_iterator absl::string_view::begin ( ) const
inlineconstexprnoexcept

Definition at line 220 of file abseil-cpp/absl/strings/string_view.h.

◆ cbegin() [1/2]

constexpr const_iterator absl::string_view::cbegin ( ) const
inlineconstexprnoexcept

◆ cbegin() [2/2]

constexpr const_iterator absl::string_view::cbegin ( ) const
inlineconstexprnoexcept

Definition at line 233 of file abseil-cpp/absl/strings/string_view.h.

◆ cend() [1/2]

constexpr const_iterator absl::string_view::cend ( ) const
inlineconstexprnoexcept

◆ cend() [2/2]

constexpr const_iterator absl::string_view::cend ( ) const
inlineconstexprnoexcept

Definition at line 240 of file abseil-cpp/absl/strings/string_view.h.

◆ CheckLengthInternal() [1/2]

static constexpr size_type absl::string_view::CheckLengthInternal ( size_type  len)
inlinestaticconstexprprivate

◆ CheckLengthInternal() [2/2]

static constexpr size_type absl::string_view::CheckLengthInternal ( size_type  len)
inlinestaticconstexprprivate

Definition at line 609 of file abseil-cpp/absl/strings/string_view.h.

◆ compare() [1/12]

int absl::string_view::compare ( const char *  s) const
inline

◆ compare() [2/12]

constexpr int absl::string_view::compare ( const char *  s) const
inlineconstexpr

Definition at line 436 of file abseil-cpp/absl/strings/string_view.h.

◆ compare() [3/12]

int absl::string_view::compare ( size_type  pos1,
size_type  count1,
const char *  s 
) const
inline

◆ compare() [4/12]

constexpr int absl::string_view::compare ( size_type  pos1,
size_type  count1,
const char *  s 
) const
inlineconstexpr

Definition at line 440 of file abseil-cpp/absl/strings/string_view.h.

◆ compare() [5/12]

int absl::string_view::compare ( size_type  pos1,
size_type  count1,
const char *  s,
size_type  count2 
) const
inline

◆ compare() [6/12]

constexpr int absl::string_view::compare ( size_type  pos1,
size_type  count1,
const char *  s,
size_type  count2 
) const
inlineconstexpr

Definition at line 446 of file abseil-cpp/absl/strings/string_view.h.

◆ compare() [7/12]

int absl::string_view::compare ( size_type  pos1,
size_type  count1,
string_view  v 
) const
inline

◆ compare() [8/12]

constexpr int absl::string_view::compare ( size_type  pos1,
size_type  count1,
string_view  v 
) const
inlineconstexpr

Definition at line 423 of file abseil-cpp/absl/strings/string_view.h.

◆ compare() [9/12]

int absl::string_view::compare ( size_type  pos1,
size_type  count1,
string_view  v,
size_type  pos2,
size_type  count2 
) const
inline

◆ compare() [10/12]

constexpr int absl::string_view::compare ( size_type  pos1,
size_type  count1,
string_view  v,
size_type  pos2,
size_type  count2 
) const
inlineconstexpr

Definition at line 429 of file abseil-cpp/absl/strings/string_view.h.

◆ compare() [11/12]

constexpr int absl::string_view::compare ( string_view  x) const
inlineconstexprnoexcept

◆ compare() [12/12]

constexpr int absl::string_view::compare ( string_view  x) const
inlineconstexprnoexcept

Definition at line 413 of file abseil-cpp/absl/strings/string_view.h.

◆ CompareImpl() [1/2]

static constexpr int absl::string_view::CompareImpl ( size_type  length_a,
size_type  length_b,
int  compare_result 
)
inlinestaticconstexprprivate

◆ CompareImpl() [2/2]

static constexpr int absl::string_view::CompareImpl ( size_type  length_a,
size_type  length_b,
int  compare_result 
)
inlinestaticconstexprprivate

Definition at line 635 of file abseil-cpp/absl/strings/string_view.h.

◆ copy() [1/2]

size_type absl::string_view::copy ( char *  buf,
size_type  n,
size_type  pos = 0 
) const
inline

◆ copy() [2/2]

size_type absl::string_view::copy ( char *  buf,
size_type  n,
size_type  pos = 0 
) const
inline

Definition at line 381 of file abseil-cpp/absl/strings/string_view.h.

◆ crbegin() [1/2]

const_reverse_iterator absl::string_view::crbegin ( ) const
inlinenoexcept

◆ crbegin() [2/2]

const_reverse_iterator absl::string_view::crbegin ( ) const
inlinenoexcept

Definition at line 263 of file abseil-cpp/absl/strings/string_view.h.

◆ crend() [1/2]

const_reverse_iterator absl::string_view::crend ( ) const
inlinenoexcept

◆ crend() [2/2]

const_reverse_iterator absl::string_view::crend ( ) const
inlinenoexcept

Definition at line 270 of file abseil-cpp/absl/strings/string_view.h.

◆ data() [1/2]

constexpr const_pointer absl::string_view::data ( ) const
inlineconstexprnoexcept

◆ data() [2/2]

constexpr const_pointer absl::string_view::data ( ) const
inlineconstexprnoexcept

Definition at line 336 of file abseil-cpp/absl/strings/string_view.h.

◆ empty() [1/2]

constexpr bool absl::string_view::empty ( ) const
inlineconstexprnoexcept

◆ empty() [2/2]

constexpr bool absl::string_view::empty ( ) const
inlineconstexprnoexcept

Definition at line 292 of file abseil-cpp/absl/strings/string_view.h.

◆ end() [1/2]

constexpr const_iterator absl::string_view::end ( ) const
inlineconstexprnoexcept

◆ end() [2/2]

constexpr const_iterator absl::string_view::end ( ) const
inlineconstexprnoexcept

Definition at line 227 of file abseil-cpp/absl/strings/string_view.h.

◆ find() [1/6]

size_type absl::string_view::find ( char  c,
size_type  pos = 0 
) const
noexcept

◆ find() [2/6]

string_view::size_type absl::string_view::find ( char  c,
size_type  pos = 0 
) const
noexcept

Definition at line 92 of file abseil-cpp/absl/strings/string_view.cc.

◆ find() [3/6]

size_type absl::string_view::find ( const char *  s,
size_type  pos,
size_type  count 
) const
inline

Definition at line 466 of file abseil-cpp/absl/strings/string_view.h.

◆ find() [4/6]

size_type absl::string_view::find ( const char *  s,
size_type  pos = 0 
) const
inline

Definition at line 472 of file abseil-cpp/absl/strings/string_view.h.

◆ find() [5/6]

size_type absl::string_view::find ( string_view  s,
size_type  pos = 0 
) const
noexcept

◆ find() [6/6]

string_view::size_type absl::string_view::find ( string_view  s,
size_type  pos = 0 
) const
noexcept

Definition at line 81 of file abseil-cpp/absl/strings/string_view.cc.

◆ find_first_not_of() [1/6]

size_type absl::string_view::find_first_not_of ( char  c,
size_type  pos = 0 
) const
noexcept

◆ find_first_not_of() [2/6]

string_view::size_type absl::string_view::find_first_not_of ( char  c,
size_type  pos = 0 
) const
noexcept

Definition at line 154 of file abseil-cpp/absl/strings/string_view.cc.

◆ find_first_not_of() [3/6]

size_type absl::string_view::find_first_not_of ( const char *  s,
size_type  pos,
size_type  count 
) const
inline

Definition at line 563 of file abseil-cpp/absl/strings/string_view.h.

◆ find_first_not_of() [4/6]

size_type absl::string_view::find_first_not_of ( const char *  s,
size_type  pos = 0 
) const
inline

Definition at line 570 of file abseil-cpp/absl/strings/string_view.h.

◆ find_first_not_of() [5/6]

size_type absl::string_view::find_first_not_of ( string_view  s,
size_type  pos = 0 
) const
noexcept

◆ find_first_not_of() [6/6]

string_view::size_type absl::string_view::find_first_not_of ( string_view  s,
size_type  pos = 0 
) const
noexcept

Definition at line 140 of file abseil-cpp/absl/strings/string_view.cc.

◆ find_first_of() [1/6]

size_type absl::string_view::find_first_of ( char  c,
size_type  pos = 0 
) const
inlinenoexcept

◆ find_first_of() [2/6]

size_type absl::string_view::find_first_of ( char  c,
size_type  pos = 0 
) const
inlinenoexcept

Definition at line 508 of file abseil-cpp/absl/strings/string_view.h.

◆ find_first_of() [3/6]

size_type absl::string_view::find_first_of ( const char *  s,
size_type  pos,
size_type  count 
) const
inline

Definition at line 514 of file abseil-cpp/absl/strings/string_view.h.

◆ find_first_of() [4/6]

size_type absl::string_view::find_first_of ( const char *  s,
size_type  pos = 0 
) const
inline

Definition at line 521 of file abseil-cpp/absl/strings/string_view.h.

◆ find_first_of() [5/6]

size_type absl::string_view::find_first_of ( string_view  s,
size_type  pos = 0 
) const
noexcept

◆ find_first_of() [6/6]

string_view::size_type absl::string_view::find_first_of ( string_view  s,
size_type  pos = 0 
) const
noexcept

Definition at line 124 of file abseil-cpp/absl/strings/string_view.cc.

◆ find_last_not_of() [1/6]

size_type absl::string_view::find_last_not_of ( char  c,
size_type  pos = npos 
) const
noexcept

◆ find_last_not_of() [2/6]

string_view::size_type absl::string_view::find_last_not_of ( char  c,
size_type  pos = npos 
) const
noexcept

Definition at line 197 of file abseil-cpp/absl/strings/string_view.cc.

◆ find_last_not_of() [3/6]

size_type absl::string_view::find_last_not_of ( const char *  s,
size_type  pos,
size_type  count 
) const
inline

Definition at line 588 of file abseil-cpp/absl/strings/string_view.h.

◆ find_last_not_of() [4/6]

size_type absl::string_view::find_last_not_of ( const char *  s,
size_type  pos = npos 
) const
inline

Definition at line 595 of file abseil-cpp/absl/strings/string_view.h.

◆ find_last_not_of() [5/6]

size_type absl::string_view::find_last_not_of ( string_view  s,
size_type  pos = npos 
) const
noexcept

◆ find_last_not_of() [6/6]

string_view::size_type absl::string_view::find_last_not_of ( string_view  s,
size_type  pos = npos 
) const
noexcept

Definition at line 180 of file abseil-cpp/absl/strings/string_view.cc.

◆ find_last_of() [1/6]

size_type absl::string_view::find_last_of ( char  c,
size_type  pos = npos 
) const
inlinenoexcept

◆ find_last_of() [2/6]

size_type absl::string_view::find_last_of ( char  c,
size_type  pos = npos 
) const
inlinenoexcept

Definition at line 534 of file abseil-cpp/absl/strings/string_view.h.

◆ find_last_of() [3/6]

size_type absl::string_view::find_last_of ( const char *  s,
size_type  pos,
size_type  count 
) const
inline

Definition at line 540 of file abseil-cpp/absl/strings/string_view.h.

◆ find_last_of() [4/6]

size_type absl::string_view::find_last_of ( const char *  s,
size_type  pos = npos 
) const
inline

Definition at line 546 of file abseil-cpp/absl/strings/string_view.h.

◆ find_last_of() [5/6]

size_type absl::string_view::find_last_of ( string_view  s,
size_type  pos = npos 
) const
noexcept

◆ find_last_of() [6/6]

string_view::size_type absl::string_view::find_last_of ( string_view  s,
size_type  pos = npos 
) const
noexcept

Definition at line 165 of file abseil-cpp/absl/strings/string_view.cc.

◆ front() [1/2]

constexpr const_reference absl::string_view::front ( ) const
inlineconstexpr

◆ front() [2/2]

constexpr const_reference absl::string_view::front ( ) const
inlineconstexpr

Definition at line 318 of file abseil-cpp/absl/strings/string_view.h.

◆ length() [1/2]

constexpr size_type absl::string_view::length ( ) const
inlineconstexprnoexcept

◆ length() [2/2]

constexpr size_type absl::string_view::length ( ) const
inlineconstexprnoexcept

Definition at line 282 of file abseil-cpp/absl/strings/string_view.h.

◆ max_size() [1/2]

constexpr size_type absl::string_view::max_size ( ) const
inlineconstexprnoexcept

◆ max_size() [2/2]

constexpr size_type absl::string_view::max_size ( ) const
inlineconstexprnoexcept

Definition at line 287 of file abseil-cpp/absl/strings/string_view.h.

◆ Min() [1/2]

static constexpr size_t absl::string_view::Min ( size_type  length_a,
size_type  length_b 
)
inlinestaticconstexprprivate

◆ Min() [2/2]

static constexpr size_t absl::string_view::Min ( size_type  length_a,
size_type  length_b 
)
inlinestaticconstexprprivate

Definition at line 631 of file abseil-cpp/absl/strings/string_view.h.

◆ operator std::basic_string< char, traits_type, A >() [1/2]

template<typename A >
absl::string_view::operator std::basic_string< char, traits_type, A > ( ) const
inlineexplicit

◆ operator std::basic_string< char, traits_type, A >() [2/2]

template<typename A >
absl::string_view::operator std::basic_string< char, traits_type, A > ( ) const
inlineexplicit

Definition at line 372 of file abseil-cpp/absl/strings/string_view.h.

◆ operator[]() [1/2]

constexpr const_reference absl::string_view::operator[] ( size_type  i) const
inlineconstexpr

◆ operator[]() [2/2]

constexpr const_reference absl::string_view::operator[] ( size_type  i) const
inlineconstexpr

Definition at line 298 of file abseil-cpp/absl/strings/string_view.h.

◆ rbegin() [1/2]

const_reverse_iterator absl::string_view::rbegin ( ) const
inlinenoexcept

◆ rbegin() [2/2]

const_reverse_iterator absl::string_view::rbegin ( ) const
inlinenoexcept

Definition at line 246 of file abseil-cpp/absl/strings/string_view.h.

◆ remove_prefix() [1/2]

void absl::string_view::remove_prefix ( size_type  n)
inline

◆ remove_prefix() [2/2]

ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void absl::string_view::remove_prefix ( size_type  n)
inline

Definition at line 344 of file abseil-cpp/absl/strings/string_view.h.

◆ remove_suffix() [1/2]

void absl::string_view::remove_suffix ( size_type  n)
inline

◆ remove_suffix() [2/2]

ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void absl::string_view::remove_suffix ( size_type  n)
inline

Definition at line 354 of file abseil-cpp/absl/strings/string_view.h.

◆ rend() [1/2]

const_reverse_iterator absl::string_view::rend ( ) const
inlinenoexcept

◆ rend() [2/2]

const_reverse_iterator absl::string_view::rend ( ) const
inlinenoexcept

Definition at line 255 of file abseil-cpp/absl/strings/string_view.h.

◆ rfind() [1/6]

size_type absl::string_view::rfind ( char  c,
size_type  pos = npos 
) const
noexcept

◆ rfind() [2/6]

string_view::size_type absl::string_view::rfind ( char  c,
size_type  pos = npos 
) const
noexcept

Definition at line 111 of file abseil-cpp/absl/strings/string_view.cc.

◆ rfind() [3/6]

size_type absl::string_view::rfind ( const char *  s,
size_type  pos,
size_type  count 
) const
inline

Definition at line 489 of file abseil-cpp/absl/strings/string_view.h.

◆ rfind() [4/6]

size_type absl::string_view::rfind ( const char *  s,
size_type  pos = npos 
) const
inline

Definition at line 495 of file abseil-cpp/absl/strings/string_view.h.

◆ rfind() [5/6]

size_type absl::string_view::rfind ( string_view  s,
size_type  pos = npos 
) const
noexcept

◆ rfind() [6/6]

string_view::size_type absl::string_view::rfind ( string_view  s,
size_type  pos = npos 
) const
noexcept

Definition at line 101 of file abseil-cpp/absl/strings/string_view.cc.

◆ size() [1/2]

constexpr size_type absl::string_view::size ( ) const
inlineconstexprnoexcept

◆ size() [2/2]

constexpr size_type absl::string_view::size ( ) const
inlineconstexprnoexcept

Definition at line 277 of file abseil-cpp/absl/strings/string_view.h.

◆ StrlenInternal() [1/2]

static constexpr size_type absl::string_view::StrlenInternal ( const char *  str)
inlinestaticconstexprprivate

◆ StrlenInternal() [2/2]

static constexpr size_type absl::string_view::StrlenInternal ( const char *  str)
inlinestaticconstexprprivate

Definition at line 613 of file abseil-cpp/absl/strings/string_view.h.

◆ substr() [1/2]

constexpr string_view absl::string_view::substr ( size_type  pos,
size_type  n = npos 
) const
inlineconstexpr

◆ substr() [2/2]

constexpr string_view absl::string_view::substr ( size_type  pos = 0,
size_type  n = npos 
) const
inlineconstexpr

Definition at line 399 of file abseil-cpp/absl/strings/string_view.h.

◆ swap() [1/2]

void absl::string_view::swap ( string_view s)
inlinenoexcept

◆ swap() [2/2]

ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void absl::string_view::swap ( string_view s)
inlinenoexcept

Definition at line 362 of file abseil-cpp/absl/strings/string_view.h.

Member Data Documentation

◆ kMaxSize

static constexpr size_type absl::string_view::kMaxSize
staticconstexprprivate

◆ length_

size_type absl::string_view::length_
private

Definition at line 643 of file abseil-cpp/absl/strings/string_view.h.

◆ npos

static constexpr size_type absl::string_view::npos = static_cast<size_type>(-1)
staticconstexpr

Definition at line 182 of file abseil-cpp/absl/strings/string_view.h.

◆ ptr_

const char * absl::string_view::ptr_
private

Definition at line 642 of file abseil-cpp/absl/strings/string_view.h.


The documentation for this class was generated from the following files:
max
int max
Definition: bloaty/third_party/zlib/examples/enough.c:170


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:26