Re: [PATCH v15 2/7] rust: str: add radix prefixed integer parsing functions

Benno Lossin
2025-07-08T08:55:22Z

On Mon Jul 7, 2025 at 3:29 PM CEST, Andreas Hindborg wrote:
> 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.
>
> Tested-by: Daniel Gomez <da.gomez@samsung.com>
> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Suggested-by: Benno Lossin <benno.lossin@proton.me>
> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>

Reviewed-by: Benno Lossin <lossin@kernel.org>

---
Cheers,
Benno

> ---
> rust/kernel/str.rs | 2 +
> rust/kernel/str/parse_int.rs | 148 +++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 150 insertions(+)