Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Add tryParse methods. #96

Merged
merged 6 commits into from
Nov 23, 2022
Merged

Add tryParse methods. #96

merged 6 commits into from
Nov 23, 2022

Conversation

lrhn
Copy link
Contributor

@lrhn lrhn commented Nov 22, 2022

Add tryParse, tryParseInt and tryParseHex to Int32 and Int64.

Changed the Int32 parse methods to accept a leading minus, and reject an empty input.

Optimize some of the less-optimized methods as well.

Optimize some things.
lib/src/int64.dart Outdated Show resolved Hide resolved
lib/src/int64.dart Outdated Show resolved Hide resolved
lib/src/int64.dart Outdated Show resolved Hide resolved
@lrhn lrhn merged commit 14d4827 into master Nov 23, 2022
@lrhn lrhn deleted the try-reparse-lrn branch November 23, 2022 16:29
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 15, 2024
* Add `tryParse` methods.

Optimize some methods that were not highly optimized, in particular ones related to parsing.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants