| 41 | } |
| 42 | |
| 43 | std::string parse_formula(const std::string& data) { |
| 44 | size_t begin_pos = data.find('{'); |
| 45 | size_t end_pos = data.find('}'); |
| 46 | if (begin_pos != std::string::npos && end_pos != std::string::npos) { |
| 47 | assert(end_pos > begin_pos); |
| 48 | return data.substr(begin_pos+1, end_pos - begin_pos - 1); |
| 49 | } else { |
| 50 | return ""; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | void parse_offset_parameters(ParameterManager::Ptr manager, |
| 55 | PTree& config, SymmetryOrbits& orbits) { |
no test coverage detected