commit | d2e372ac76bf0aba40391d818d624d7d6d33d452 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Nov 15 00:14:01 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Nov 15 00:14:01 2023 +0000 |
tree | 5534f0966b96f3998d055cdeb6e295463ebee486 | |
parent | 5a7c7ecd9954e9390ecc0dd6bbba8fd7351f6530 [diff] | |
parent | 35e1d8b055ec3348dae989b958938175ffa067b4 [diff] |
Snap for 11097608 from 35e1d8b055ec3348dae989b958938175ffa067b4 to 24Q1-release Change-Id: I37c949e18d9f83fd4b65512193992633a2243569
Same idea as (but implementation not directly based on) the Python shlex module. However, this implementation does not support any of the Python module's customization because it makes parsing slower and is fairly useless. You only get the default settings of shlex.split, which mimic the POSIX shell: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
This implementation also deviates from the Python version in not treating \r specially, which I believe is more compliant.
The algorithms in this crate are oblivious to UTF-8 high bytes, so they iterate over the bytes directly as a micro-optimization.
Disabling the std
feature (which is enabled by default) will allow the crate to work in no_std
environments, where the alloc
crate, and a global allocator, are available.
The source code in this repository is Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.