MCPcopy Create free account
hub / github.com/FastLED/FastLED / normalize_path

Function normalize_path

ci/lint_cpp_rs/src/lib.rs:1765–1774  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

1763}
1764
1765fn normalize_path(path: &str) -> String {
1766 let normalized = path.replace('\\', "/");
1767 if let Some(rest) = normalized.strip_prefix("//?/UNC/") {
1768 return format!("//{rest}");
1769 }
1770 if let Some(rest) = normalized.strip_prefix("//?/") {
1771 return rest.to_string();
1772 }
1773 normalized
1774}
1775
1776fn path_to_string(path: &Path) -> String {
1777 path.to_string_lossy().to_string()

Callers 15

readMethod · 0.70
collect_pathFunction · 0.70
collect_directory_filesFunction · 0.70
relative_display_pathFunction · 0.70
is_under_dirFunction · 0.70
is_under_project_subpathFunction · 0.70
header_exists_for_fileFunction · 0.70
is_std_bridge_fileFunction · 0.70
project_relative_guessFunction · 0.70
project_relative_pathFunction · 0.70

Calls 1

to_stringMethod · 0.45