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

Function parse_cli_target

perro_source/devtools/perro_cli/src/project.rs:794–806  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

792 match ch {
793 '\\' if in_string => escaped = true,
794 '"' => in_string = !in_string,
795 '=' if !in_string => return Some(idx),
796 _ => {}
797 }
798 }
799 None
800}
801
802fn leading_close_braces(line: &str) -> usize {
803 line.chars().take_while(|ch| *ch == '}').count()
804}
805
806fn count_braces_outside_strings(line: &str) -> (usize, usize) {
807 let mut escaped = false;
808 let mut in_string = false;
809 let mut open = 0usize;

Callers 2

dev_commandFunction · 0.85
project_commandFunction · 0.85

Calls 2

parse_flag_valueFunction · 0.70
as_strMethod · 0.45

Tested by

no test coverage detected