MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_project_name

Function parse_project_name

perro_editor/res/scripts/ui/editor_ui.rs:3527–3544  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

3525 out.push("res");
3526 }
3527 if out.is_empty() {
3528 String::new()
3529 } else {
3530 format!(" {}", out.join(" "))
3531 }
3532}
3533
3534pub fn picker_rows(state: &EditorState, filter: &str, offset: usize) -> Vec<String> {
3535 picker_node_types(state, filter)
3536 .into_iter()
3537 .skip(offset)
3538 .take(MAX_NODE_PICKER_ROWS)
3539 .map(|node_type| picker_node_row(state, node_type))
3540 .collect()
3541}
3542
3543pub fn filtered_file_paths(state: &EditorState) -> Vec<String> {
3544 let cache_key = filtered_file_cache_key(state);
3545 let cache = FILTERED_FILE_CACHE.get_or_init(|| Mutex::new(None));
3546 if let Ok(cache) = cache.lock()
3547 && let Some(cached) = cache.as_ref()

Callers 1

open_projectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected