Commit 7051af9
committed
kernel_cmdline: Refactor into separate
Split the kernel command line parsing functionality into two focused
modules. The `bytes` module handles raw byte parsing without UTF-8
requirements, matching kernel behavior for arbitrary byte
sequences. The `utf8` module provides string-based parsing for cases
where UTF-8 validation is needed. The `utf8` module reuses the
`bytes` module primitives where possible, and uses the fact that
`utf8::Cmdline` can only be constructed from valid UTF-8 to do
unchecked conversions between the two.
Signed-off-by: John Eckersberg <[email protected]>bytes and utf8 modules1 parent 4335ba1 commit 7051af9
File tree
4 files changed
+965
-670
lines changed- crates
- kernel_cmdline/src
- lib/src
4 files changed
+965
-670
lines changed
0 commit comments