Re: [PATCH v5 4/5] rust: str: add radix prefixed integer parsing functions
From: Andreas Hindborg
Date: Mon Feb 10 2025 - 08:38:10 EST
"Andreas Hindborg" <a.hindborg@xxxxxxxxxx> writes:
> Add the trait `ParseInt` for parsing string representations of integers
> where the string representations are optionally prefixed by a radix
> specifier. Implement the trait for the primitive integer types.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> ---
There is a bug in `ParseInt::from_str` that prevents parsing the string
"0" to zero. Will fix for next version.
Best regards,
Andreas Hindborg