Skip to content

Introduce and use CProverString.isValidInt/Long #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Feb 11, 2020

These determine whether a string would pass parseInt/parseLong without throwing due to
containing inappropriate characters. The previous versions were broken because that check
was a mandatory part of Integer.parseInt and cousins, causing side-effects on the input
string.

These determine whether a string would pass parseInt/parseLong without throwing due to
containing inappropriate characters. The previous versions were broken because that check
was a mandatory part of Integer.parseInt and cousins, causing side-effects on the input
string.
* radix is already checked in-range.
* Exactly as Integer.parseInt, except s is already checked non-null, the
* radix is already checked in-range and 's' is known to be a valid integer
* according to isValidInt below
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ {@param s}

@smowton smowton merged commit 242aaff into master Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants