mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uucore: num_parser: Add note about where literals are parsed
This commit is contained in:
committed by
Dorian Péron
parent
d9be3315c1
commit
51453f833e
@@ -546,6 +546,9 @@ pub(crate) fn parse<'a>(
|
||||
target: ParseTarget,
|
||||
allowed_suffixes: &[(char, u32)],
|
||||
) -> Result<ExtendedBigDecimal, ExtendedParserError<'a, ExtendedBigDecimal>> {
|
||||
// Note: literals with ' and " prefixes are parsed earlier on in argument parsing,
|
||||
// before UTF-8 conversion.
|
||||
|
||||
let trimmed_input = input.trim_ascii_start();
|
||||
|
||||
// Initial minus/plus sign
|
||||
|
||||
Reference in New Issue
Block a user