Skip to content

Add isAsciiDigit to Rune #23465

Open
Open
@johnnovak

Description

@johnnovak

Summary

Some util functions that are defined for chars are missing for Runes.

isAsciiDigit is one of them.

Description

func isAsciiDigit*(r: Rune): bool =
  ord(r) >= ord('0') and ord(r) <= ord('9')

Alternatives

No response

Examples

No response

Backwards Compatibility

No response

Links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions