| 672 | // return 'true' on success |
| 673 | |
| 674 | bool nextline(std::istream &istream, std::string &line) |
| 675 | { |
| 676 | while ( istream.good() ) |
| 677 | { |
| 678 | std::getline(istream, line); |
| 679 | if(line.size() > 0 && line[line.size() - 1] == '\r') |
| 680 | { |
| 681 | line.resize(line.size() - 1); |
| 682 | } |
| 683 | if(!StringUtils::IsEmptyOrWhiteSpace(line)) |
| 684 | { |
| 685 | return true; |
| 686 | } |
| 687 | } |
| 688 | |
| 689 | line.clear(); |
| 690 | return false; |
| 691 | } |
| 692 | |
| 693 | bool StrEqualsCaseIgnore(const std::string & a, const std::string & b) |
| 694 | { |
no test coverage detected