1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/// Returns `true` when pre-lowercased `haystack` contains the pre-lowercased `needle_lower` byte slice.
///
/// # Arguments
///
/// - `&[u8]` - Pre-lowercased haystack bytes (valid UTF-8 segments optionally separated by `0xFF`).
/// - `&[u8]` - Pre-lowercased UTF-8 needle bytes.
///
/// # Returns
///
/// - `bool` - `true` when `needle_lower` occurs contiguously inside `haystack`.
pub
/// Returns `true` when `haystack` contains `needle` using zero-allocation ASCII case-insensitive matching.
///
/// # Arguments
///
/// - `&str` - Source UTF-8 haystack text.
/// - `&str` - UTF-8 search query substring.
///
/// # Returns
///
/// - `bool` - `true` when `needle` occurs inside `haystack` ignoring ASCII letter case.
pub