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
//! # Scalar SIMD Implementation
//!
//! Fallback implementations for platforms without SIMD support.
/// Scans for the first quote (`"`) or backslash (`\`) character.
///
/// # Arguments
/// * `input` - The byte slice to scan.
///
/// # Returns
/// The index of the first match, or input length if not found.
/// Skips leading whitespace characters.
///
/// Skips space (0x20), tab (0x09), newline (0x0A), and carriage return (0x0D).
///
/// # Arguments
/// * `input` - The byte slice to scan.
///
/// # Returns
/// The number of whitespace bytes to skip.
/// Checks if all bytes are valid ASCII (value < 0x80).
///
/// # Arguments
/// * `input` - The byte slice to check.
///
/// # Returns
/// `true` if all bytes are ASCII.