Commit Graph

1324 Commits

Author SHA1 Message Date
Dmitri Gribenko
c486a3a6e2 Merge pull request #680 from PatrickPijnappel/bit-fix
[stdlib] Fix bug in Bit with-overflow arithmetic
2015-12-20 18:58:42 -08:00
Dmitri Gribenko
1f950762bb Merge pull request #613 from PatrickPijnappel/int-parse-fix
[stdlib] Fix Int(_:radix:) accepting unintentional cases (SR-187)
2015-12-20 18:45:53 -08:00
Patrick Pijnappel
17a5845640 [stdlib] Add terminating period to comments 2015-12-21 13:31:34 +11:00
Patrick Pijnappel
4faa43aa88 [stdlib] Adjust formatting to fit 80 colums 2015-12-21 13:23:12 +11:00
Patrick Pijnappel
f81968341d [stdlib] Adjust formatting to fit 80 columns 2015-12-21 13:06:24 +11:00
Patrick Pijnappel
f8c155a80e [stdlib] Refactor Bit._withOverflow() 2015-12-20 17:41:49 +11:00
Patrick Pijnappel
56ed11ee3d [stdlib] Refactor local variables names 2015-12-20 17:29:54 +11:00
Patrick Pijnappel
9f162728f1 [stdlib] Fix bug in Bit with-overflow arithmetic
The original version would result in a crash for negative results.
2015-12-20 17:21:13 +11:00
Dmitri Gribenko
6f8bee17aa Merge pull request #576 from dduan/set_intersect_optimization
[Performance] iterate the smaller set during Set.intersect()
2015-12-19 17:26:42 -08:00
Daniel Duan
d919f4cb5c [stdlib] iterate the smaller set in Set.intersect()
This introduces a small constant in speed, but it's a big win for
worst case scenario.
2015-12-19 04:26:44 -08:00
Dmitri Gribenko
0c3f2e8b11 Merge pull request #657 from PatrickPijnappel/enums
[stdlib] Remove redundant CustomStringConvertible conformance
2015-12-19 03:09:25 -08:00
Patrick Pijnappel
b5c3e23c40 [stdlib] Remove redundant CustomStringConvertible conformance
The implementation is identical to the default string representation. The conformance and description property are never explicitly used.
2015-12-19 18:05:46 +11:00
Max Moiseev
b2277939fe Fixing tests 2015-12-18 16:22:24 -08:00
Max Moiseev
bc942090ee cleaning up initializePointee/deinitializePointee, error messages and comments 2015-12-18 16:22:24 -08:00
Dmitri Gribenko
7e375df888 startsWith(): other => possiblePrefix 2015-12-18 16:22:24 -08:00
Dmitri Gribenko
1e26d22d80 IteratorOverOne.init(_:) => internal 2015-12-18 16:22:24 -08:00
Dmitri Gribenko
c07056ddaf Mirrors: T => Subject 2015-12-18 16:22:24 -08:00
Dmitri Gribenko
e7b2666118 Set: maybeSuperset => possibleSuperset in argument labels 2015-12-18 16:22:24 -08:00
Dmitri Gribenko
06577273e9 var Sequence.enumerated => func 2015-12-18 16:22:24 -08:00
Max Moiseev
5ccc258f71 func underestimatedLength() => var underestimatedLength { get } 2015-12-18 16:22:24 -08:00
Max Moiseev
b3fcc5fefa underestimateLength() => underestimatedLength() 2015-12-18 16:22:24 -08:00
Dave Abrahams
d72932e931 Replace Unmanaged with UnsafeReference 2015-12-18 16:22:24 -08:00
Dmitri Gribenko
f6c00e8377 String: var lowercased, uppercased => func 2015-12-18 16:20:01 -08:00
Dmitri Gribenko
2245f7505f func _unsafeUnwrap() => var _unsafelyUnwrapped 2015-12-18 16:20:01 -08:00
Dmitri Gribenko
47d48e45ba func customPlaygroundQuickLook() => var 2015-12-18 16:20:01 -08:00
Dmitri Gribenko
117b65393b func customMirror() => var 2015-12-18 16:20:01 -08:00
Max Moiseev
3ab767a604 func superclassMirror() => var superclassMirror {get} 2015-12-18 16:20:01 -08:00
Max Moiseev
bbfcab8734 func isEmptyInput => var isEmptyInput {get} 2015-12-18 16:20:01 -08:00
Max Moiseev
50371821fe reverse() => reversed() 2015-12-18 16:20:01 -08:00
Max Moiseev
e175a841bf Unmanaged<T>.toOpaque() => OpaquePointer.init<T>() 2015-12-18 16:20:01 -08:00
Max Moiseev
497b348686 turning UnicodeScalar.isASCII etc into properties 2015-12-18 16:20:01 -08:00
Max Moiseev
ddd45f584d Revert "removing Collection.split(_ separator: ...) in favor of the one in Sequence"
This reverts commit 6431d39f7ef3db7f434005a4df5971318c42a817.
2015-12-18 16:20:01 -08:00
Dmitri Gribenko
5498aa1938 stride(to:by:) => strideTo(_:by:)
and `stride(through:by:)` => `strideThrough(_:by:)`
2015-12-18 16:20:01 -08:00
Dmitri Gribenko
77376883f4 Collection.sortInPlace() => .sort() 2015-12-18 16:20:01 -08:00
Dmitri Gribenko
8f7c9ae3fd Collection.sort() => .sorted() 2015-12-18 16:20:01 -08:00
Dmitri Gribenko
7a33fb124c Remove an unsafeBitCast() that is not actually needed 2015-12-18 16:20:01 -08:00
Max Moiseev
514047b6ec removing Collection.split(_ separator: ...) in favor of the one in Sequence 2015-12-18 16:20:01 -08:00
Max Moiseev
30c77a1833 Refactoring Sequence.split family of methods 2015-12-18 16:20:01 -08:00
Dmitri Gribenko
5b728dc859 Remove Range<Index> argument from Collection.partition()
collection.partition(i..<j) => collection[i..<j].partition()
2015-12-18 16:20:01 -08:00
Doug Gregor
2091e7f852 Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words 2015-12-18 10:54:46 -08:00
Doug Gregor
a97ab6dd14 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2015-12-18 10:15:47 -08:00
Dmitri Gribenko
6a66b3cff8 Merge pull request #561 from practicalswift/typos-again
[Typo] Replace PR#514-525 with one large PR
2015-12-18 03:37:02 -08:00
Dmitri Gribenko
f436764742 Merge pull request #616 from dduan/removeAll_speedup
[stdlib][performance] skip copying old values during removeAll(keepCapacity: true)
2015-12-17 22:43:22 -08:00
Chris Lattner
3ec6239df3 Merge pull request #549 from zerotypos-found/fix_typo
Fix typo (a --> an, an --> a)
2015-12-17 22:25:22 -08:00
Dmitri Gribenko
ca1f0bf4ad Merge pull request #633 from PatrickPijnappel/patch-2
[stdlib] Remove explicit Equatable implementation for FloatingPointClassification
2015-12-17 21:40:57 -08:00
Max Moiseev
f4aaece75e revisiting CString related String extensions 2015-12-17 17:27:29 -08:00
Dmitri Gribenko
61e2b30975 Merge pull request #615 from PatrickPijnappel/min-max
[stdlib] Refactor min()/max()
2015-12-17 17:14:52 -08:00
Maxim Moiseev
d2be97d856 change return type of String.fromCStringRepairingIllFormedUTF8 2015-12-17 17:08:02 -08:00
Dmitri Gribenko
156d29a2af flatMap(): generic type parameter Intermediate => SegmentOfResult 2015-12-17 17:07:21 -08:00
Dmitri Gribenko
ebb3e45886 Sequence.{min,max}Element() => .min(), .max() 2015-12-17 17:07:01 -08:00