28 std::ifstream is(
filename.toStdString());
29 while (is.get(c) && count < 1000) {
35 double acceptance_threshold = 0.1 * double(count);
37 return static_cast<double>(count_bad) <= acceptance_threshold;
std::string filename(const std::string &path)
Returns path without directory part ("Foo/Bar/Doz.int.gz" -> "Doz.int.gz")
bool isAscii(QString filename)