Commit Graph

8 Commits

Author SHA1 Message Date
Dave Abrahams
c2aa4f9be9 [stdlib] numeric parsing: floating over/underflow
For consistency with the integers, constructing a Float/Double/Float80
from a String produces nil upon overflow.

Swift SVN r25692
2015-03-02 22:32:29 +00:00
Dave Abrahams
35cf43ae25 [stdlib] numeric parsing: Address Dmitri's review
- Made floating-point parsing truly locale-independent.
- Added tests for non-ASCII strings.

Swift SVN r25688
2015-03-02 21:35:50 +00:00
Dave Abrahams
367f308888 [stdlib] Floating-point parsing
Swift SVN r25627
2015-02-28 00:12:30 +00:00
Graham Batty
849b7fda1f Update new tests for linux.
Swift SVN r25605
2015-02-27 19:13:38 +00:00
Dave Abrahams
9f68930f6b [stdlib] Integer parsing: allow leading '+'
also add doc comments to the public API.

Swift SVN r25588
2015-02-27 02:08:45 +00:00
Dave Abrahams
ab07daa73d [stdlib] Drop validation tests for numeric parsing
The smoke tests can give us enough checking.

Swift SVN r25587
2015-02-27 02:08:44 +00:00
Dave Abrahams
c5e47c0b76 [stdlib] Integer parsing: Add two important checks
Swift SVN r25550
2015-02-26 11:36:31 +00:00
Dave Abrahams
bd12dcf135 [stdlib] Add integer parsing
Addresses <rdar://17232531>; floating point still remains to be done.

Swift SVN r25549
2015-02-26 11:22:35 +00:00