Home
last modified time | relevance | path

Searched refs:windows_osstr_starts_with (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/clap/src/
Dosstringext.rs31 fn windows_osstr_starts_with(osstr: &OsStr, prefix: &[u8]) -> bool { in windows_osstr_starts_with() function
64 assert!(windows_osstr_starts_with(&from_ascii(b"abcdef"), b"abc")); in test_windows_osstr_starts_with()
65 assert!(windows_osstr_starts_with(&from_ascii(b"abcdef"), b"abcdef")); in test_windows_osstr_starts_with()
66 assert!(!windows_osstr_starts_with(&from_ascii(b"abcdef"), b"def")); in test_windows_osstr_starts_with()
67 assert!(!windows_osstr_starts_with(&from_ascii(b"abc"), b"abcd")); in test_windows_osstr_starts_with()
72 assert!(!windows_osstr_starts_with(&from_ascii(b"\xff"), b"\xff")); in test_windows_osstr_starts_with()
86 assert!(windows_osstr_starts_with(&invalid_unicode, b"abc")); in test_windows_osstr_starts_with()
87 assert!(!windows_osstr_starts_with(&invalid_unicode, b"abcd")); in test_windows_osstr_starts_with()
115 return windows_osstr_starts_with(self, s); in starts_with()