Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
google::protobuf::StringPiece Class Reference

#include <stringpiece.h>

Public Types

typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef ptrdiff_t difference_type
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef size_t size_type
 
typedef char value_type
 

Public Member Functions

void AppendToString (string *target) const
 
string as_string () const
 
iterator begin () const
 
stringpiece_ssize_type capacity () const
 
void clear ()
 
int compare (StringPiece x) const
 
bool Consume (StringPiece x)
 
bool ConsumeFromEnd (StringPiece x)
 
bool contains (StringPiece s) const
 
stringpiece_ssize_type copy (char *buf, size_type n, size_type pos=0) const
 
void CopyToString (string *target) const
 
const char * data () const
 
bool empty () const
 
iterator end () const
 
bool ends_with (StringPiece x) const
 
stringpiece_ssize_type find (char c, size_type pos=0) const
 
stringpiece_ssize_type find (StringPiece s, size_type pos=0) const
 
stringpiece_ssize_type find_first_not_of (char c, size_type pos=0) const
 
stringpiece_ssize_type find_first_not_of (StringPiece s, size_type pos=0) const
 
stringpiece_ssize_type find_first_of (char c, size_type pos=0) const
 
stringpiece_ssize_type find_first_of (StringPiece s, size_type pos=0) const
 
stringpiece_ssize_type find_last_not_of (char c, size_type pos=npos) const
 
stringpiece_ssize_type find_last_not_of (StringPiece s, size_type pos=npos) const
 
stringpiece_ssize_type find_last_of (char c, size_type pos=npos) const
 
stringpiece_ssize_type find_last_of (StringPiece s, size_type pos=npos) const
 
stringpiece_ssize_type length () const
 
stringpiece_ssize_type max_size () const
 
 operator string () const
 
char operator[] (stringpiece_ssize_type i) const
 
const_reverse_iterator rbegin () const
 
void remove_prefix (stringpiece_ssize_type n)
 
void remove_suffix (stringpiece_ssize_type n)
 
const_reverse_iterator rend () const
 
stringpiece_ssize_type rfind (char c, size_type pos=npos) const
 
stringpiece_ssize_type rfind (StringPiece s, size_type pos=npos) const
 
void set (const char *data, stringpiece_ssize_type len)
 
void set (const char *str)
 
void set (const void *data, stringpiece_ssize_type len)
 
stringpiece_ssize_type size () const
 
bool starts_with (StringPiece x) const
 
 StringPiece ()
 
 StringPiece (const char *offset, stringpiece_ssize_type len)
 
 StringPiece (const char *str)
 
template<class Allocator >
 StringPiece (const std::basic_string< char, std::char_traits< char >, Allocator > &str)
 
 StringPiece (StringPiece x, stringpiece_ssize_type pos)
 
 StringPiece (StringPiece x, stringpiece_ssize_type pos, stringpiece_ssize_type len)
 
StringPiece substr (size_type pos, size_type n=npos) const
 
string ToString () const
 

Public Attributes

const typedef char * const_iterator
 
const typedef char & const_reference
 
const typedef char * iterator
 
const typedef char * pointer
 
const typedef char & reference
 

Static Public Attributes

static const size_type npos = size_type(-1)
 

Static Private Member Functions

static stringpiece_ssize_type CheckedSsizeTFromSizeT (size_t size)
 
static void LogFatalSizeTooBig (size_t size, const char *details)
 

Private Attributes

stringpiece_ssize_type length_
 
const char * ptr_
 

Detailed Description

Definition at line 180 of file bloaty/third_party/protobuf/src/google/protobuf/stubs/stringpiece.h.

Member Typedef Documentation

◆ const_reverse_iterator

◆ difference_type

◆ reverse_iterator

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ StringPiece() [1/6]

google::protobuf::StringPiece::StringPiece ( )
inline

◆ StringPiece() [2/6]

google::protobuf::StringPiece::StringPiece ( const char *  str)
inline

◆ StringPiece() [3/6]

template<class Allocator >
google::protobuf::StringPiece::StringPiece ( const std::basic_string< char, std::char_traits< char >, Allocator > &  str)
inline

◆ StringPiece() [4/6]

google::protobuf::StringPiece::StringPiece ( const char *  offset,
stringpiece_ssize_type  len 
)
inline

◆ StringPiece() [5/6]

google::protobuf::StringPiece::StringPiece ( StringPiece  x,
stringpiece_ssize_type  pos 
)

◆ StringPiece() [6/6]

google::protobuf::StringPiece::StringPiece ( StringPiece  x,
stringpiece_ssize_type  pos,
stringpiece_ssize_type  len 
)

Member Function Documentation

◆ AppendToString()

void google::protobuf::StringPiece::AppendToString ( string *  target) const

◆ as_string()

string google::protobuf::StringPiece::as_string ( ) const
inline

◆ begin()

iterator google::protobuf::StringPiece::begin ( ) const
inline

◆ capacity()

stringpiece_ssize_type google::protobuf::StringPiece::capacity ( ) const
inline

◆ CheckedSsizeTFromSizeT()

static stringpiece_ssize_type google::protobuf::StringPiece::CheckedSsizeTFromSizeT ( size_t  size)
inlinestaticprivate

◆ clear()

void google::protobuf::StringPiece::clear ( )
inline

◆ compare()

int google::protobuf::StringPiece::compare ( StringPiece  x) const
inline

◆ Consume()

bool google::protobuf::StringPiece::Consume ( StringPiece  x)

◆ ConsumeFromEnd()

bool google::protobuf::StringPiece::ConsumeFromEnd ( StringPiece  x)

◆ contains()

bool google::protobuf::StringPiece::contains ( StringPiece  s) const

◆ copy()

stringpiece_ssize_type google::protobuf::StringPiece::copy ( char *  buf,
size_type  n,
size_type  pos = 0 
) const

◆ CopyToString()

void google::protobuf::StringPiece::CopyToString ( string *  target) const

◆ data()

const char* google::protobuf::StringPiece::data ( ) const
inline

◆ empty()

bool google::protobuf::StringPiece::empty ( ) const
inline

◆ end()

iterator google::protobuf::StringPiece::end ( ) const
inline

◆ ends_with()

bool google::protobuf::StringPiece::ends_with ( StringPiece  x) const
inline

◆ find() [1/2]

stringpiece_ssize_type google::protobuf::StringPiece::find ( char  c,
size_type  pos = 0 
) const

◆ find() [2/2]

stringpiece_ssize_type google::protobuf::StringPiece::find ( StringPiece  s,
size_type  pos = 0 
) const

◆ find_first_not_of() [1/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_first_not_of ( char  c,
size_type  pos = 0 
) const

◆ find_first_not_of() [2/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_first_not_of ( StringPiece  s,
size_type  pos = 0 
) const

◆ find_first_of() [1/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_first_of ( char  c,
size_type  pos = 0 
) const
inline

◆ find_first_of() [2/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_first_of ( StringPiece  s,
size_type  pos = 0 
) const

◆ find_last_not_of() [1/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_last_not_of ( char  c,
size_type  pos = npos 
) const

◆ find_last_not_of() [2/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_last_not_of ( StringPiece  s,
size_type  pos = npos 
) const

◆ find_last_of() [1/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_last_of ( char  c,
size_type  pos = npos 
) const
inline

◆ find_last_of() [2/2]

stringpiece_ssize_type google::protobuf::StringPiece::find_last_of ( StringPiece  s,
size_type  pos = npos 
) const

◆ length()

stringpiece_ssize_type google::protobuf::StringPiece::length ( ) const
inline

◆ LogFatalSizeTooBig()

void google::protobuf::StringPiece::LogFatalSizeTooBig ( size_t  size,
const char *  details 
)
staticprivate

◆ max_size()

stringpiece_ssize_type google::protobuf::StringPiece::max_size ( ) const
inline

◆ operator string()

google::protobuf::StringPiece::operator string ( ) const
inline

◆ operator[]()

char google::protobuf::StringPiece::operator[] ( stringpiece_ssize_type  i) const
inline

◆ rbegin()

const_reverse_iterator google::protobuf::StringPiece::rbegin ( ) const
inline

◆ remove_prefix()

void google::protobuf::StringPiece::remove_prefix ( stringpiece_ssize_type  n)
inline

◆ remove_suffix()

void google::protobuf::StringPiece::remove_suffix ( stringpiece_ssize_type  n)
inline

◆ rend()

const_reverse_iterator google::protobuf::StringPiece::rend ( ) const
inline

◆ rfind() [1/2]

stringpiece_ssize_type google::protobuf::StringPiece::rfind ( char  c,
size_type  pos = npos 
) const

◆ rfind() [2/2]

stringpiece_ssize_type google::protobuf::StringPiece::rfind ( StringPiece  s,
size_type  pos = npos 
) const

◆ set() [1/3]

void google::protobuf::StringPiece::set ( const char *  data,
stringpiece_ssize_type  len 
)
inline

◆ set() [2/3]

void google::protobuf::StringPiece::set ( const char *  str)
inline

◆ set() [3/3]

void google::protobuf::StringPiece::set ( const void *  data,
stringpiece_ssize_type  len 
)
inline

◆ size()

stringpiece_ssize_type google::protobuf::StringPiece::size ( ) const
inline

◆ starts_with()

bool google::protobuf::StringPiece::starts_with ( StringPiece  x) const
inline

◆ substr()

StringPiece google::protobuf::StringPiece::substr ( size_type  pos,
size_type  n = npos 
) const

◆ ToString()

string google::protobuf::StringPiece::ToString ( ) const
inline

Member Data Documentation

◆ const_iterator

const typedef char* google::protobuf::StringPiece::const_iterator

◆ const_reference

const typedef char& google::protobuf::StringPiece::const_reference

◆ iterator

const typedef char* google::protobuf::StringPiece::iterator

◆ length_

stringpiece_ssize_type google::protobuf::StringPiece::length_
private

◆ npos

const StringPiece::size_type google::protobuf::StringPiece::npos = size_type(-1)
static

◆ pointer

const typedef char* google::protobuf::StringPiece::pointer

◆ ptr_

const char* google::protobuf::StringPiece::ptr_
private

◆ reference

const typedef char& google::protobuf::StringPiece::reference

The documentation for this class was generated from the following files:


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