Lines Matching refs:db_
68 explicit Parser(const std::string& db) : db_(db) { in Parser()
70 db_.erase(std::remove_if(db_.begin(), db_.end(), isspace), db_.end()); in Parser()
76 bool Finished() { return current_ >= db_.size(); } in Finished()
97 while (current_ != db_.size() && db_[current_++] != '"') { in TryParseOne()
99 if (current_ == db_.size()) { in TryParseOne()
102 feature->set_name(db_.substr(name_start, current_ - name_start - 1)); in TryParseOne()
104 if (db_[current_ - 1] == ']' && current_ == db_.size()) { in TryParseOne()
119 bool eq = db_.substr(current_, prefix.size()) == prefix; in Match()
126 while (current_ != db_.size() && db_[current_] != ',' && in ReadLong()
127 db_[current_] != '}') { in ReadLong()
131 *l = std::stol(db_.substr(start, current_ - start)); in ReadLong()
135 std::string db_; member in routeguide::Parser