MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / extract_title_value

Function extract_title_value

cpp_core/src/potcar_parser.cpp:321–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321std::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
329std::string extract_element_symbol(const std::string& title_or_header) {
330 std::istringstream iss(title_or_header);

Callers 1

parse_dataset_blockFunction · 0.85

Calls 2

sizeMethod · 0.80
trim_copyFunction · 0.70

Tested by

no test coverage detected