Lines Matching refs:piece
24 OutputType PieceToOutputType(BasicStringPiece<Str> piece) { in PieceToOutputType() argument
25 return piece; in PieceToOutputType()
28 std::string PieceToOutputType<std::string, std::string>(StringPiece piece) { in PieceToOutputType() argument
29 return piece.as_string(); in PieceToOutputType()
32 string16 PieceToOutputType<string16, string16>(StringPiece16 piece) { in PieceToOutputType() argument
33 return piece.as_string(); in PieceToOutputType()
51 size_t FindFirstOf(StringPiece piece, char c, size_t pos) { in FindFirstOf() argument
52 return piece.find(c, pos); in FindFirstOf()
54 size_t FindFirstOf(StringPiece16 piece, char16 c, size_t pos) { in FindFirstOf() argument
55 return piece.find(c, pos); in FindFirstOf()
57 size_t FindFirstOf(StringPiece piece, StringPiece one_of, size_t pos) { in FindFirstOf() argument
58 return piece.find_first_of(one_of, pos); in FindFirstOf()
60 size_t FindFirstOf(StringPiece16 piece, StringPiece16 one_of, size_t pos) { in FindFirstOf() argument
61 return piece.find_first_of(one_of, pos); in FindFirstOf()
86 BasicStringPiece<Str> piece; in SplitStringT() local
88 piece = str.substr(start); in SplitStringT()
91 piece = str.substr(start, end - start); in SplitStringT()
96 piece = TrimString(piece, WhitespaceForType<Str>(), TRIM_ALL); in SplitStringT()
98 if (result_type == SPLIT_WANT_ALL || !piece.empty()) in SplitStringT()
99 result.push_back(PieceToOutputType<Str, OutputStringType>(piece)); in SplitStringT()