MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_remap_paths

Function get_remap_paths

utility/import_info.cpp:421–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420namespace {
421Vector<String> get_remap_paths(const Ref<ConfigFileCompat> &cf) {
422 Vector<String> remap_paths;
423 Vector<String> remap_keys = cf->get_section_keys("remap");
424 // iterate over keys in remap section
425 for (int64_t i = 0; i < remap_keys.size(); i++) {
426 // if we find a path key, we have a match
427 if (remap_keys[i].begins_with("path.") || remap_keys[i] == "path") {
428 String try_path = cf->get_value("remap", remap_keys[i], "");
429 remap_paths.push_back(try_path);
430 }
431 }
432 return remap_paths;
433}
434Array vec_to_array(const Vector<String> &vec) {
435 Array arr;
436 for (int64_t i = 0; i < vec.size(); i++) {

Callers 1

_loadMethod · 0.85

Calls 4

get_section_keysMethod · 0.80
push_backMethod · 0.80
sizeMethod · 0.45
get_valueMethod · 0.45

Tested by

no test coverage detected