Lines Matching refs:size_type

14 typedef StringPiece::size_type size_type;
37 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const {
38 size_type ret = std::min(length_ - pos, n);
43 size_type StringPiece::find(const StringPiece& s, size_type pos) const {
49 const size_type xpos = result - ptr_;
53 size_type StringPiece::find(char c, size_type pos) const {
61 size_type StringPiece::rfind(const StringPiece& s, size_type pos) const {
73 size_type StringPiece::rfind(char c, size_type pos) const {
77 for (size_type i = std::min(pos, length_ - 1); ; --i) {
96 const size_type length = characters_wanted.length();
98 for (size_type i = 0; i < length; ++i) {
103 size_type StringPiece::find_first_of(const StringPiece& s,
104 size_type pos) const {
114 for (size_type i = pos; i < length_; ++i) {
122 size_type StringPiece::find_first_not_of(const StringPiece& s,
123 size_type pos) const {
136 for (size_type i = pos; i < length_; ++i) {
144 size_type StringPiece::find_first_not_of(char c, size_type pos) const {
156 size_type StringPiece::find_last_of(const StringPiece& s, size_type pos) const {
166 for (size_type i = std::min(pos, length_ - 1); ; --i) {
175 size_type StringPiece::find_last_not_of(const StringPiece& s,
176 size_type pos) const {
180 size_type i = std::min(pos, length_ - 1);
199 size_type StringPiece::find_last_not_of(char c, size_type pos) const {
203 for (size_type i = std::min(pos, length_ - 1); ; --i) {
212 StringPiece StringPiece::substr(size_type pos, size_type n) const {
218 const StringPiece::size_type StringPiece::npos = size_type(-1);