| 419 | } |
| 420 | namespace { |
| 421 | Vector<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 | } |
| 434 | Array vec_to_array(const Vector<String> &vec) { |
| 435 | Array arr; |
| 436 | for (int64_t i = 0; i < vec.size(); i++) { |
no test coverage detected