Lines Matching refs:Piece
19 // non-piece string type.
24 OutputType PieceToOutputType(BasicStringPiece<Str> piece) {
25 return piece;
28 std::string PieceToOutputType<std::string, std::string>(StringPiece piece) {
29 return piece.as_string();
32 string16 PieceToOutputType<string16, string16>(StringPiece16 piece) {
33 return piece.as_string();
51 size_t FindFirstOf(StringPiece piece, char c, size_t pos) {
52 return piece.find(c, pos);
54 size_t FindFirstOf(StringPiece16 piece, char16 c, size_t pos) {
55 return piece.find(c, pos);
57 size_t FindFirstOf(StringPiece piece, StringPiece one_of, size_t pos) {
58 return piece.find_first_of(one_of, pos);
60 size_t FindFirstOf(StringPiece16 piece, StringPiece16 one_of, size_t pos) {
61 return piece.find_first_of(one_of, pos);
68 // DelimiterType is either a character (Str::value_type) or a string piece of
86 BasicStringPiece<Str> piece;
88 piece = str.substr(start);
91 piece = str.substr(start, end - start);
96 piece = TrimString(piece, WhitespaceForType<Str>(), TRIM_ALL);
98 if (result_type == SPLIT_WANT_ALL || !piece.empty())
99 result.push_back(PieceToOutputType<Str, OutputStringType>(piece));
139 using Piece = BasicStringPiece<Str>;
140 using size_type = typename Piece::size_type;
143 for (size_type begin_index = 0, end_index = 0; end_index != Piece::npos;
146 Piece term = end_index == Piece::npos