#include <pcre_stringpiece.h>
Public Member Functions | |
StringPiece () | |
StringPiece (const char *str) | |
StringPiece (const unsigned char *str) | |
StringPiece (const string &str) | |
StringPiece (const char *offset, int len) | |
const char * | data () const |
int | size () const |
bool | empty () const |
void | clear () |
void | set (const char *buffer, int len) |
void | set (const char *str) |
void | set (const void *buffer, int len) |
char | operator[] (int i) const |
void | remove_prefix (int n) |
void | remove_suffix (int n) |
bool | operator== (const StringPiece &x) const |
bool | operator!= (const StringPiece &x) const |
STRINGPIECE_BINARY_PREDICATE (<,<) | |
STRINGPIECE_BINARY_PREDICATE (<=,<) | |
STRINGPIECE_BINARY_PREDICATE (>=, >) | |
STRINGPIECE_BINARY_PREDICATE (>, >) | |
int | compare (const StringPiece &x) const |
string | as_string () const |
void | CopyToString (string *target) const |
bool | starts_with (const StringPiece &x) const |
StringPiece () | |
StringPiece (const char *str) | |
StringPiece (const unsigned char *str) | |
StringPiece (const string &str) | |
StringPiece (const char *offset, int len) | |
const char * | data () const |
int | size () const |
bool | empty () const |
void | clear () |
void | set (const char *buffer, int len) |
void | set (const char *str) |
void | set (const void *buffer, int len) |
char | operator[] (int i) const |
void | remove_prefix (int n) |
void | remove_suffix (int n) |
bool | operator== (const StringPiece &x) const |
bool | operator!= (const StringPiece &x) const |
STRINGPIECE_BINARY_PREDICATE (<,<) | |
STRINGPIECE_BINARY_PREDICATE (<=,<) | |
STRINGPIECE_BINARY_PREDICATE (>=, >) | |
STRINGPIECE_BINARY_PREDICATE (>, >) | |
int | compare (const StringPiece &x) const |
string | as_string () const |
void | CopyToString (string *target) const |
bool | starts_with (const StringPiece &x) const |
Private Attributes | |
const char * | ptr_ |
int | length_ |
const char * | ptr_ |
Definition at line 59 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | ) | [inline] |
Definition at line 68 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const char * | str | ) | [inline] |
Definition at line 70 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const unsigned char * | str | ) | [inline] |
Definition at line 72 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const string & | str | ) | [inline] |
Definition at line 75 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const char * | offset, | |
int | len | |||
) | [inline] |
Definition at line 77 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | ) | [inline] |
Definition at line 68 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const char * | str | ) | [inline] |
Definition at line 70 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const unsigned char * | str | ) | [inline] |
Definition at line 72 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const string & | str | ) | [inline] |
Definition at line 75 of file pcre_stringpiece.h.
pcrecpp::StringPiece::StringPiece | ( | const char * | offset, | |
int | len | |||
) | [inline] |
Definition at line 77 of file pcre_stringpiece.h.
const char* pcrecpp::StringPiece::data | ( | ) | const [inline] |
Definition at line 86 of file pcre_stringpiece.h.
Referenced by pcrecpp::Scanner::ConsumeSkip(), pcrecpp::Scanner::LineNumber(), main(), pcrecpp::Scanner::Offset(), and pcrecpp::RE::Rewrite().
int pcrecpp::StringPiece::size | ( | ) | const [inline] |
Definition at line 87 of file pcre_stringpiece.h.
Referenced by main(), pcrecpp::RE::QuoteMeta(), and pcrecpp::RE::Rewrite().
bool pcrecpp::StringPiece::empty | ( | ) | const [inline] |
Definition at line 88 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::clear | ( | ) | [inline] |
void pcrecpp::StringPiece::set | ( | const char * | buffer, | |
int | len | |||
) | [inline] |
Definition at line 91 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::set | ( | const char * | str | ) | [inline] |
Definition at line 92 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::set | ( | const void * | buffer, | |
int | len | |||
) | [inline] |
Definition at line 96 of file pcre_stringpiece.h.
char pcrecpp::StringPiece::operator[] | ( | int | i | ) | const [inline] |
Definition at line 101 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::remove_prefix | ( | int | n | ) | [inline] |
Definition at line 103 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::remove_suffix | ( | int | n | ) | [inline] |
Definition at line 108 of file pcre_stringpiece.h.
bool pcrecpp::StringPiece::operator== | ( | const StringPiece & | x | ) | const [inline] |
bool pcrecpp::StringPiece::operator!= | ( | const StringPiece & | x | ) | const [inline] |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | ) |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | <= | ) |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | >= | ) |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | ) |
int pcrecpp::StringPiece::compare | ( | const StringPiece & | x | ) | const [inline] |
string pcrecpp::StringPiece::as_string | ( | ) | const [inline] |
void pcrecpp::StringPiece::CopyToString | ( | string * | target | ) | const [inline] |
Definition at line 144 of file pcre_stringpiece.h.
bool pcrecpp::StringPiece::starts_with | ( | const StringPiece & | x | ) | const [inline] |
const char* pcrecpp::StringPiece::data | ( | ) | const [inline] |
Definition at line 86 of file pcre_stringpiece.h.
int pcrecpp::StringPiece::size | ( | ) | const [inline] |
Definition at line 87 of file pcre_stringpiece.h.
bool pcrecpp::StringPiece::empty | ( | ) | const [inline] |
Definition at line 88 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::clear | ( | ) | [inline] |
void pcrecpp::StringPiece::set | ( | const char * | buffer, | |
int | len | |||
) | [inline] |
Definition at line 91 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::set | ( | const char * | str | ) | [inline] |
Definition at line 92 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::set | ( | const void * | buffer, | |
int | len | |||
) | [inline] |
Definition at line 96 of file pcre_stringpiece.h.
char pcrecpp::StringPiece::operator[] | ( | int | i | ) | const [inline] |
Definition at line 101 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::remove_prefix | ( | int | n | ) | [inline] |
Definition at line 103 of file pcre_stringpiece.h.
void pcrecpp::StringPiece::remove_suffix | ( | int | n | ) | [inline] |
Definition at line 108 of file pcre_stringpiece.h.
bool pcrecpp::StringPiece::operator== | ( | const StringPiece & | x | ) | const [inline] |
bool pcrecpp::StringPiece::operator!= | ( | const StringPiece & | x | ) | const [inline] |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | ) |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | <= | ) |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | >= | ) |
pcrecpp::StringPiece::STRINGPIECE_BINARY_PREDICATE | ( | ) |
int pcrecpp::StringPiece::compare | ( | const StringPiece & | x | ) | const [inline] |
string pcrecpp::StringPiece::as_string | ( | ) | const [inline] |
void pcrecpp::StringPiece::CopyToString | ( | string * | target | ) | const [inline] |
Definition at line 144 of file pcre_stringpiece.h.
bool pcrecpp::StringPiece::starts_with | ( | const StringPiece & | x | ) | const [inline] |
const char* pcrecpp::StringPiece::ptr_ [private] |
Definition at line 61 of file pcre_stringpiece.h.
int pcrecpp::StringPiece::length_ [private] |
Definition at line 62 of file pcre_stringpiece.h.
const char* pcrecpp::StringPiece::ptr_ [private] |
Definition at line 61 of file pcre_stringpiece.h.