| 319 | } |
| 320 | |
| 321 | std::string extract_title_value(const std::string& line) { |
| 322 | const std::size_t eq_pos = line.find('='); |
| 323 | if (eq_pos == std::string::npos || eq_pos + 1 >= line.size()) { |
| 324 | return trim_copy(line); |
| 325 | } |
| 326 | return trim_copy(line.substr(eq_pos + 1)); |
| 327 | } |
| 328 | |
| 329 | std::string extract_element_symbol(const std::string& title_or_header) { |
| 330 | std::istringstream iss(title_or_header); |
no test coverage detected