Home | History | Annotate | Download | only in dns

Lines Matching refs:StringPiece

13 using base::StringPiece;
18 // a time. Doesn't copy anything; accepts the file as a StringPiece and
22 explicit HostsParser(const StringPiece& text)
57 token_ = StringPiece(data_ + token_start, token_end - token_start);
65 text_ = StringPiece();
80 // Returns the text of the last-parsed token as a StringPiece referencing
81 // the same underlying memory as the StringPiece passed to the constructor.
82 // Returns an empty StringPiece if no token has been parsed or the end of
84 const StringPiece& token() { return token_; }
95 StringPiece text_;
100 StringPiece token_;
112 StringPiece ip_text;
118 StringPiece new_ip_text = parser.token();