| 185 | } |
| 186 | |
| 187 | Size SpectrumLookup::findByReference(const String& spectrum_ref) const |
| 188 | { |
| 189 | for (const boost::regex& reg : reference_formats) |
| 190 | { |
| 191 | boost::smatch match; |
| 192 | bool found = boost::regex_search(spectrum_ref, match, reg); |
| 193 | if (found) |
| 194 | { |
| 195 | return findByRegExpMatch_(spectrum_ref, reg.str(), match); |
| 196 | } |
| 197 | } |
| 198 | String msg = "Spectrum reference doesn't match any known format"; |
| 199 | throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, |
| 200 | spectrum_ref, msg); |
| 201 | } |
| 202 | |
| 203 | |
| 204 | bool SpectrumLookup::isNativeID(const String& id) |
no outgoing calls
no test coverage detected