Re: [PATCH v5 4/5] rust: str: add radix prefixed integer parsing functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"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






[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux