Commit Graph

19 Commits

Author SHA1 Message Date
Max Moiseev
2021dd5a4d Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2015-12-15 12:49:22 -08:00
Erik Eckstein
0830c36974 [tests] add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
This is the second part of 308f39fe56.
It fixes (better: works-around) linker errors when testing in optimized mode.
2015-12-15 10:46:10 -08:00
Dmitri Gribenko
df17ddbc9b init(count: Int, repeatedValue: Element) => init(repeating:count:)
Affected types: _ArrayType, Array, ArraySlice, ContiguousArray, Repeat,
String (initializers from Character and UnicodeScalar)
2015-12-09 17:14:37 -08:00
Dave Abrahams
b3ca7eed40 gyb parsing fixes
Fixes <rdar://problem/18900352> gyb miscompiles nested loops

Swift SVN r32863
2015-10-24 04:47:57 +00:00
Arnold Schwaighofer
f7771859d8 Rename the optimize_test feature to executable_test and document that feature.
Swift SVN r29213
2015-06-01 23:44:13 +00:00
Arnold Schwaighofer
3643c614a3 Run tests in optimize test modes
This runs all files that have a target-build-swift or target-run-stdlib-swift
RUN line in optimize test mode.

Swift SVN r29206
2015-06-01 21:23:31 +00:00
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