Skip to content

Add a generic is_numeric() function #49

Description

@FFMG

It would be nice to have a helper method is_numberic() similar to the php one.

It would be a virtual function in TJValue and all the TJComment/TJObject/TJArray/TJNull would return false, TJValueNumber would return true

For TJString we would have to check if it evaluates to a number ... if it could be a number

Not sure what we would do about TJBoolean

Maybe we should have a 'strict' flag, so that TJBoolean and TJString return false if strict?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions