| 732 | } |
| 733 | |
| 734 | bool FuzzyStringComparator::InputLine::ok() const |
| 735 | { |
| 736 | return !line_.fail(); // failbit AND badbit are both NOT set; using fail() seems the only portable solution for both C++98 and C++11 |
| 737 | // operator bool() (C++11 only) and operator void*() (C++98 only) are both not very sexy since they are not "safe bool idiomatic" and would require |
| 738 | // a macro here... So we use a real function name (both internally and externally) |
| 739 | } |
| 740 | |
| 741 | FuzzyStringComparator::PrefixInfo_::PrefixInfo_(const InputLine& input_line, const int this_tab_width_, const int this_first_column_) : |
| 742 | prefix(input_line.line_.str()), line_column(0) |