Skip to content

Add a function for parsing an integer in a given base #3

@jwodder

Description

@jwodder

Add a strtoint_base(s: &str, base: Base) function that parses s as an integer in the given base (using the Base type detailed in #4).

  • If the given base has an associated prefix, s may optionally start with that prefix; otherwise, no prefix is allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request therefor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions