Commit Graph

13 Commits

Author SHA1 Message Date
Dmitri Hrybenko
270ec3b67c stdlib: protocol extensions: de-underscore reduce()
Swift SVN r28237
2015-05-07 00:30:25 +00:00
Dmitri Hrybenko
9c03811987 stdlib: add initializers from String to integer and floating-point types
rdar://17232531

Swift SVN r27159
2015-04-09 03:20:41 +00:00
Dave Abrahams
ac3f047496 [stdlib] Renaming fallout from Mirror API review
toString(x)      => String(x)
toDebugString(x) => String(reflecting: x)
Printable        => CustomStringConvertible
DebugPrintable   => CustomDebugStringConvertible

Also updated comments to clarify these protocols

Swift SVN r27090
2015-04-07 20:32:26 +00:00
Dmitri Hrybenko
5ca75b75e3 Move integer parsing APIs to SwiftExperimental
These APIs did not go through API review.

Swift SVN r25890
2015-03-09 19:04:21 +00:00
Dmitri Hrybenko
652eb8f948 stdlib: on Linux, create a non-NULL locale for strto*_l functions
Unlike Darwin, GNU libc does not provide a shortcut to access the C
locale by using a NULL locale_t.

Swift SVN r25847
2015-03-08 04:06:43 +00:00
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