51 const QString &peptide_str)
55 QRegularExpressionMatch match_pattern =
m_pattern.match(peptide_str, pos);
57 while(match_pattern.hasMatch())
59 pos = match_pattern.capturedStart(0);
60 if(match_pattern.lastCapturedIndex() == 0)
63 position_list.push_back(pos);
69 pos = match_pattern.capturedStart(1);
70 if((position_list.size() > 0) && (position_list.back() == (
unsigned int)pos))
72 pos = match_pattern.capturedStart(0) + 1;
76 position_list.push_back(pos);
77 pos = match_pattern.capturedStart(0) + 1;
80 match_pattern =
m_pattern.match(peptide_str, pos);
88 unsigned int modification_counter)
92 const QString peptide_str = p_peptide->
getSequence();
93 QRegularExpressionMatch match_pattern =
m_pattern.match(peptide_str, pos);
95 while(match_pattern.hasMatch())
97 pos = match_pattern.capturedStart(0);
98 if(match_pattern.lastCapturedIndex() == 0)
103 position_list.push_back(pos);
110 pos = match_pattern.capturedStart(1);
111 if((position_list.size() > 0) && (position_list.back() == (
unsigned int)pos))
113 pos = match_pattern.capturedStart(0) + 1;
119 position_list.push_back(pos);
121 pos = match_pattern.capturedStart(0) + 1;
124 match_pattern =
m_pattern.match(peptide_str, pos);