Lines Matching refs:query
67 // A QueryNodeWord is a single word in the query.
73 virtual int AppendToSQLiteQuery(string16* query) const;
115 int QueryNodeWord::AppendToSQLiteQuery(string16* query) const {
116 query->append(word_);
120 *query += L'*';
130 virtual int AppendToSQLiteQuery(string16* query) const {
131 return AppendChildrenToString(query);
156 int AppendChildrenToString(string16* query) const;
187 int QueryNodeList::AppendChildrenToString(string16* query) const {
192 query->push_back(L' ');
193 num_words += (*node)->AppendToSQLiteQuery(query);
198 // A QueryNodePhrase is a phrase query ("quoted").
201 virtual int AppendToSQLiteQuery(string16* query) const {
202 query->push_back(L'"');
203 int num_words = AppendChildrenToString(query);
204 query->push_back(L'"');
268 int QueryParser::ParseQuery(const string16& query,
271 if (!ParseQueryImpl(query, &root))
276 void QueryParser::ParseQuery(const string16& query,
279 if (ParseQueryImpl(l10n_util::ToLower(query), &root))
284 void QueryParser::ExtractQueryWords(const string16& query,
287 if (!ParseQueryImpl(query, &root))
323 bool QueryParser::ParseQueryImpl(const string16& query,
325 base::BreakIterator iter(&query, base::BreakIterator::BREAK_WORD);
348 if (IsQueryQuote(query[iter.prev()])) {