MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / PrefixInfo_

Method PrefixInfo_

src/openms/source/CONCEPT/FuzzyStringComparator.cpp:741–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

prefixMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected