MCPcopy Create free account
hub / github.com/ccusage/ccusage / is_windows_users_path

Function is_windows_users_path

rust/crates/ccusage/src/project_names.rs:116–123  ·  view source on GitHub ↗
(project: &str)

Source from the content-addressed store, hash-verified

114}
115
116fn is_windows_users_path(project: &str) -> bool {
117 let bytes = project.as_bytes();
118 (bytes.len() >= 10
119 && bytes[1] == b':'
120 && bytes[2] == b'\\'
121 && bytes[3..].starts_with(b"Users\\"))
122 || project.starts_with("\\Users\\")
123}
124
125pub(crate) fn short_model_name(model: &str) -> String {
126 let model = model

Callers 1

parse_project_nameFunction · 0.85

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected