| 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) |
| 743 | { |
| 744 | prefix = prefix.prefix(size_t(input_line.line_position_)); |
| 745 | prefix_whitespaces = prefix; |
| 746 | for (String::iterator iter = prefix_whitespaces.begin(); iter != prefix_whitespaces.end(); ++iter) |
| 747 | { |
| 748 | if (*iter != '\t') |
| 749 | { |
| 750 | *iter = ' '; |
| 751 | ++line_column; |
| 752 | } |
| 753 | else |
| 754 | { |
| 755 | line_column = (line_column / this_tab_width_ + 1) * this_tab_width_; |
| 756 | } |
| 757 | } |
| 758 | line_column += this_first_column_; |
| 759 | } |
| 760 | |
| 761 | } //namespace OpenMS |