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

Function split_href_impl

perro_source/api_modules/perro_web/src/lib.rs:26–37  ·  view source on GitHub ↗
(href: &str)

Source from the content-addressed store, hash-verified

24}
25
26fn split_href_impl(href: &str) -> Vec<String> {
27 let normalized = normalize_href_impl(href);
28 if normalized == "/" {
29 return Vec::new();
30 }
31 normalized
32 .trim_matches('/')
33 .split('/')
34 .filter(|part| !part.is_empty())
35 .map(str::to_string)
36 .collect()
37}
38
39fn split_query_args_impl(href: &str) -> Vec<String> {
40 let Some((_, tail)) = href.split_once('?') else {

Callers 1

split_hrefFunction · 0.85

Calls 2

normalize_href_implFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected