MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / contains_ascii

Function contains_ascii

crates/openshell-core/src/config.rs:291–295  ·  view source on GitHub ↗
(haystack: &[u8], needle: &[u8])

Source from the content-addressed store, hash-verified

289
290#[cfg(unix)]
291fn contains_ascii(haystack: &[u8], needle: &[u8]) -> bool {
292 haystack
293 .windows(needle.len())
294 .any(|window| window.eq_ignore_ascii_case(needle))
295}
296
297#[cfg(all(unix, test))]
298fn is_reachable_unix_socket(path: &Path) -> bool {

Callers 2

podman_socket_respondsFunction · 0.85
unix_socket_http_pingFunction · 0.85

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected