Detailed Description

Definition at line 38 of file StringPiece.h.

Classes

struct  Hasher
 

Public Types

typedef size_t size_type
 
typedef const char * const_iterator
 
typedef const char * iterator
 

Public Member Functions

 StringPiece (const char *d, size_t n)
 
 StringPiece (const std::string &s)
 
 StringPiece (const char *s)
 
void set (const void *data, size_t len)
 
const char * data () const
 
size_t size () const
 
bool empty () const
 
iterator begin () const
 
iterator end () const
 
char operator[] (size_t n) const
 
void clear ()
 
void remove_prefix (size_t n)
 
void remove_suffix (size_t n)
 
size_t find (char c, size_t pos=0) const
 
size_t rfind (char c, size_t pos=npos) const
 
bool contains (StringPiece s) const
 
bool Consume (StringPiece x)
 
StringPiece substr (size_t pos, size_t n=npos) const
 
std::string ToString () const
 
int compare (StringPiece b) const
 
bool starts_with (StringPiece x) const
 
bool ends_with (StringPiece x) const
 

Static Public Attributes

static const size_t npos = size_type(-1)
 

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