Changeset 339
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Parser.cc
r299 r339 38 38 39 39 40 Parser::Parser( const std::string&path)40 Parser::Parser(std::string path) 41 41 { 42 42 std::ifstream is(path.c_str()); 43 43 assert(is.good()); 44 44 std::vector<std::pair<std::string, std::string> > codon; 45 // Ignore trailing '.in' in file names 46 if (match_end(path.rbegin(), path.rend(), ".in")) 47 path = path.substr(0, path.size()-3); 45 48 if (match_end(path.rbegin(), path.rend(), ".ac") || 46 49 match_end(path.rbegin(), path.rend(), ".am") || -
trunk/lib/Parser.h
r261 r339 56 56 /// @brief Constructor 57 57 /// 58 explicit Parser( const std::string&);58 explicit Parser(std::string); 59 59 60 60 ///
Note: See TracChangeset
for help on using the changeset viewer.