| 858 | |
| 859 | template <typename Collection> |
| 860 | void readLines(std::istream& is, Collection* pLines) { |
| 861 | pLines->clear(); |
| 862 | std::string line; |
| 863 | while(std::getline(is, line)) { |
| 864 | // strip \r (for the case of windows line terminators on posix) |
| 865 | if (line.length() > 0 && *line.rbegin() == '\r') |
| 866 | line.erase(line.length()-1, 1); |
| 867 | stripTrailingLineComments(&line); |
| 868 | pLines->push_back(line); |
| 869 | } |
| 870 | } |
| 871 | |
| 872 | bool addUniqueDependency(Rcpp::CharacterVector include, |
| 873 | std::vector<FileInfo>* pDependencies) { |
no test coverage detected