Skip to main content

find_desktop_prefix_len

Function find_desktop_prefix_len 

Source
pub fn find_desktop_prefix_len(path: &[u16]) -> Option<usize>
Expand description

Skip C:\\Users\\User\\Desktop\\ — return the index just past the fourth backslash within the first MAX_PATH code units, or None if fewer than four backslashes are found. Matches the C++ findDesktopPathPrefixLength helper (returns -1 there).