111 if(match_line.hasMatch())
113 QStringList pline = match_line.capturedTexts();
120 else if(pline[1] ==
"name")
122 m_name = pline[2].trimmed();
125 else if(pline[1] ==
"is_a")
127 m_isA << pline[2].section(
" ", 0, 0);
130 else if(pline[1] ==
"xref")
133 QRegularExpressionMatch match_subline =
m_firstParse.match(pline[2]);
134 if(match_subline.hasMatch())
136 QStringList psecond = match_subline.capturedTexts();
137 if(psecond[1] ==
"DiffMono")
139 m_diffMono = psecond[2].replace(
"\"",
"").toDouble();
143 else if(psecond[1] ==
"DiffFormula")
149 else if(psecond[1] ==
"Formula")
151 m_formula = psecond[2].trimmed().replace(
"\"",
"");
155 else if(psecond[1] ==
"Origin")
158 psecond[2].trimmed().replace(
"\"",
"").replace(
",",
"");
164 else if(psecond[1] ==
"MassMono")
168 psecond[2].replace(
"\"",
"").toDouble(&is_ok);
178 else if(pline[1] ==
"synonym")
181 QRegularExpressionMatch match_exact_psimod =
183 if(match_exact_psimod.hasMatch())
186 match_exact_psimod.captured(1).trimmed().replace(
"\"",
"");
192 QRegularExpressionMatch match_related_psims =
194 if(match_related_psims.hasMatch())
197 match_related_psims.captured(1).trimmed().replace(
"\"",
"");
203 else if(pline[1] ==
"def")