Skip to content

Expand isnumeric() function #16

@digital-nomad8620

Description

@digital-nomad8620

Currently, the isnumeric() functions returns true only if all characters in the string are decimal digits (i.e. 0 - 9). It would be helpful to expand out the function to take in an argument that tells it to allow other type of numeric digits like hexadecimal.

Ex.

String num("0x3E8"); // Valid hexadecimal for 1000

REQUIRE(num.isnumeric(bool hex=true));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions