|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
#include <string_piece.hh>
Public Types | |
| typedef size_t | size_type |
| typedef char | value_type |
| typedef const char * | pointer |
| typedef const char & | reference |
| typedef const char & | const_reference |
| typedef ptrdiff_t | difference_type |
| typedef const char * | const_iterator |
| typedef const char * | iterator |
| typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
Public Member Functions | |
| StringPiece () | |
| StringPiece (const char *str) | |
| StringPiece (const std::string &str) | |
| StringPiece (const char *offset, size_type len) | |
| const char * | data () const |
| size_type | size () const |
| size_type | length () const |
| bool | empty () const |
| void | clear () |
| void | set (const char *data, size_type len) |
| void | set (const char *str) |
| void | set (const void *data, size_type len) |
| char | operator[] (size_type i) const |
| void | remove_prefix (size_type n) |
| void | remove_suffix (size_type n) |
| int | compare (const StringPiece &x) const |
| std::string | as_string () const |
| void | CopyToString (std::string *target) const |
| void | AppendToString (std::string *target) const |
| bool | starts_with (const StringPiece &x) const |
| bool | ends_with (const StringPiece &x) const |
| iterator | begin () const |
| iterator | end () const |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| size_type | max_size () const |
| size_type | capacity () const |
| size_type | copy (char *buf, size_type n, size_type pos=0) const |
| size_type | find (const StringPiece &s, size_type pos=0) const |
| size_type | find (char c, size_type pos=0) const |
| size_type | rfind (const StringPiece &s, size_type pos=npos) const |
| size_type | rfind (char c, size_type pos=npos) const |
| size_type | find_first_of (const StringPiece &s, size_type pos=0) const |
| size_type | find_first_of (char c, size_type pos=0) const |
| size_type | find_first_not_of (const StringPiece &s, size_type pos=0) const |
| size_type | find_first_not_of (char c, size_type pos=0) const |
| size_type | find_last_of (const StringPiece &s, size_type pos=npos) const |
| size_type | find_last_of (char c, size_type pos=npos) const |
| size_type | find_last_not_of (const StringPiece &s, size_type pos=npos) const |
| size_type | find_last_not_of (char c, size_type pos=npos) const |
| StringPiece | substr (size_type pos, size_type n=npos) const |
Static Public Member Functions | |
| static int | wordmemcmp (const char *p, const char *p2, size_type N) |
Static Public Attributes | |
| static const size_type | npos |
Private Attributes | |
| const char * | ptr_ |
| size_type | length_ |
| typedef const char* StringPiece::const_iterator |
| typedef const char& StringPiece::const_reference |
| typedef std::reverse_iterator<const_iterator> StringPiece::const_reverse_iterator |
| typedef ptrdiff_t StringPiece::difference_type |
| typedef const char* StringPiece::iterator |
| typedef const char* StringPiece::pointer |
| typedef const char& StringPiece::reference |
| typedef std::reverse_iterator<iterator> StringPiece::reverse_iterator |
| typedef size_t StringPiece::size_type |
| typedef char StringPiece::value_type |
| StringPiece::StringPiece | ( | const char * | str | ) |
| StringPiece::StringPiece | ( | const std::string & | str | ) |
| StringPiece::StringPiece | ( | const char * | offset, |
| size_type | len | ||
| ) |
| void StringPiece::AppendToString | ( | std::string * | target | ) | const |
| std::string StringPiece::as_string | ( | ) | const |
| iterator StringPiece::begin | ( | ) | const |
| size_type StringPiece::capacity | ( | ) | const |
| void StringPiece::clear | ( | ) |
| int StringPiece::compare | ( | const StringPiece & | x | ) | const |
| size_type StringPiece::copy | ( | char * | buf, |
| size_type | n, | ||
| size_type | pos = 0 |
||
| ) | const |
| void StringPiece::CopyToString | ( | std::string * | target | ) | const |
| const char* StringPiece::data | ( | ) | const |
| bool StringPiece::empty | ( | ) | const |
| iterator StringPiece::end | ( | ) | const |
| bool StringPiece::ends_with | ( | const StringPiece & | x | ) | const |
| size_type StringPiece::find | ( | const StringPiece & | s, |
| size_type | pos = 0 |
||
| ) | const |
| size_type StringPiece::find | ( | char | c, |
| size_type | pos = 0 |
||
| ) | const |
| size_type StringPiece::find_first_not_of | ( | const StringPiece & | s, |
| size_type | pos = 0 |
||
| ) | const |
| size_type StringPiece::find_first_not_of | ( | char | c, |
| size_type | pos = 0 |
||
| ) | const |
| size_type StringPiece::find_first_of | ( | const StringPiece & | s, |
| size_type | pos = 0 |
||
| ) | const |
| size_type StringPiece::find_first_of | ( | char | c, |
| size_type | pos = 0 |
||
| ) | const |
| size_type StringPiece::find_last_not_of | ( | const StringPiece & | s, |
| size_type | pos = npos |
||
| ) | const |
| size_type StringPiece::find_last_not_of | ( | char | c, |
| size_type | pos = npos |
||
| ) | const |
| size_type StringPiece::find_last_of | ( | const StringPiece & | s, |
| size_type | pos = npos |
||
| ) | const |
| size_type StringPiece::find_last_of | ( | char | c, |
| size_type | pos = npos |
||
| ) | const |
| size_type StringPiece::length | ( | ) | const |
| size_type StringPiece::max_size | ( | ) | const |
| char StringPiece::operator[] | ( | size_type | i | ) | const |
| const_reverse_iterator StringPiece::rbegin | ( | ) | const |
| void StringPiece::remove_prefix | ( | size_type | n | ) |
| void StringPiece::remove_suffix | ( | size_type | n | ) |
| const_reverse_iterator StringPiece::rend | ( | ) | const |
| size_type StringPiece::rfind | ( | const StringPiece & | s, |
| size_type | pos = npos |
||
| ) | const |
| size_type StringPiece::rfind | ( | char | c, |
| size_type | pos = npos |
||
| ) | const |
| void StringPiece::set | ( | const char * | data, |
| size_type | len | ||
| ) |
| void StringPiece::set | ( | const char * | str | ) |
| void StringPiece::set | ( | const void * | data, |
| size_type | len | ||
| ) |
| size_type StringPiece::size | ( | ) | const |
| bool StringPiece::starts_with | ( | const StringPiece & | x | ) | const |
| StringPiece StringPiece::substr | ( | size_type | pos, |
| size_type | n = npos |
||
| ) | const |
| static int StringPiece::wordmemcmp | ( | const char * | p, |
| const char * | p2, | ||
| size_type | N | ||
| ) | [static] |
size_type StringPiece::length_ [private] |
const size_type StringPiece::npos [static] |
const char* StringPiece::ptr_ [private] |