/* $Id: scan.cc 1109 2007-04-17 00:04:26Z rvernica $ Copyright (C) 2007 by The Regents of the University of California Redistribution of this file is permitted under the terms of the GNU Public License (GPL). Date: 03/19/2007 Author: Rares Vernica */ #include "scan.h" #include "util/ed.h" void Scan::search(const string &query, const unsigned editdist, vector &results) { for (unsigned i = 0; i < data->size(); i++) if (ed(query, (*data)[i], editdist)) results.push_back(i); }