MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / parse_formula

Function parse_formula

tools/Wires/Parameters/ParameterManager.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 2

parse_offset_parametersFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected