Lines Matching refs:StringPiece
29 // string tokens are stored as StringPiece instead of std::string. This
129 // A variant on StringValue that uses StringPiece instead of copying the string
134 explicit JSONStringValue(const base::StringPiece& piece)
154 StringPiece(other_string) == string_piece_;
159 base::StringPiece string_piece_;
204 Value* JSONParser::Parse(const StringPiece& input) {
207 // be used, so do not bother copying the input because StringPiece will not
325 StringPiece JSONParser::StringBuilder::AsStringPiece() {
327 return StringPiece();
328 return StringPiece(pos_, length_);
593 // to do so, and if the string can be represented by StringPiece.
609 // StringBuilder will internally build a StringPiece unless a UTF-16
629 // so using StringPiece isn't possible -- force a conversion.
648 if (!HexStringToInt(StringPiece(NextChar(), 2), &hex_digit)) {
737 if (!HexStringToInt(StringPiece(pos_, 4), &code_unit16_high))
767 if (!HexStringToInt(StringPiece(pos_, 4), &code_unit16_low))
867 StringPiece num_string(num_start, end_index - start_index);