Dmitri Gribenko
8b86dac8c1
Revert "[gardening] Fix typo: "nul-terminated" → "null-terminated""
2016-02-13 15:27:53 -08:00
Peter Friese
888d0f3fa6
[gardening] Fix typo: "nul-terminated" → "null-terminated"
2016-02-11 11:03:38 +00:00
Dmitri Gribenko
9bcd5a1056
Collection.length => .count
2016-01-22 18:41:19 -08:00
Doug Gregor
7d70b704e4
Merge commit '5e11e3f7287427d386636a169c4065c0373931a8' into swift-3-api-guidelines
2016-01-19 23:18:20 -08:00
Doug Gregor
1a38e0ad3b
Merge branch 'master' into swift-3-api-guidelines
2016-01-06 15:32:55 -08:00
practicalswift
4689a22f1b
Replace left/right quotation marks with apostrophes in non-quote contexts
...
* LEFT SINGLE QUOTATION MARK (U+2018) → APOSTROPHE (U+0027)
* RIGHT SINGLE QUOTATION MARK (U+2019) → APOSTROPHE (U+0027)
2016-01-06 12:29:40 +01:00
Max Moiseev
f51e708a8f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2016-01-04 12:25:25 -08:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
ken0nek
e7e70cea92
Add spaces before and after closure arrow in stdlib
2015-12-23 04:52:15 +09:00
Max Moiseev
a7339e67ac
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-22 11:36:07 -08:00
practicalswift
36d7072013
Remove immediately adjacent repeated words ("the the", "for for", "an an", etc.).
2015-12-21 22:16:04 +01: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
Dmitri Gribenko
73ce9ae7e9
Collection.count => .length
...
And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
2015-12-17 15:55:29 -08:00
Doug Gregor
f245f18a09
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words
2015-12-17 11:35:58 -08:00
Max Moiseev
3fe0c60d7f
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
2015-12-17 11:00:02 -08:00
Maxim Moiseev
e6468a0eca
_precondition => _require
2015-12-16 17:19:01 -08:00
Maxim Moiseev
ca932fca5a
CVarArgType => CVarArg
2015-12-16 15:52:01 -08:00
Dmitri Gribenko
3d0ad16094
Unsafe[Mutable]Pointer.memory => .pointee
2015-12-16 15:50:31 -08:00
Doug Gregor
2f5f94a12c
Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-omit-needless-words
2015-12-15 17:11:37 -08:00
Daniel Duan
ebb0c3a204
replaced single-line ++/-- with +=/-=
2015-12-15 09:05:37 -08:00
Max Moiseev
786e1ea2b1
Merge remote-tracking branch 'origin' into swift-3-api-guidelines
2015-12-11 15:19:02 -08:00
Doug Gregor
06c5e9cd5b
Enable "omit needless words" by default.
...
Most of this is in updating the standard library, SDK overlays, and
piles of test cases to use the new names. No surprises here, although
this shows us some potential heuristic tweaks.
There is one substantive compiler change that needs to be factored out
involving synthesizing calls to copyWithZone()/copy(zone:). Aside from
that, there are four failing tests:
Swift :: ClangModules/objc_parse.swift
Swift :: Interpreter/SDK/Foundation_test.swift
Swift :: Interpreter/SDK/archiving_generic_swift_class.swift
Swift :: Interpreter/SDK/objc_currying.swift
due to two independent remaining compiler bugs:
* We're not getting partial ordering between NSCoder's
encode(AnyObject, forKey: String) and NSKeyedArchiver's version of
that method, and
* Dynamic lookup (into AnyObject) doesn't know how to find the new
names. We need the Swift name lookup tables enabled to address this.
2015-12-11 14:46:50 -08:00
hvy
4a7a5d4335
fixed typo
2015-12-11 11:09:45 +09:00
Maxim Moiseev
844b81c46b
SequenceType => Sequence
2015-12-09 17:16:56 -08:00
Dmitri Gribenko
2cf172160c
Rename SequenceType.Generator associated type to SequenceType.Iterator
2015-12-09 17:11:05 -08:00
Nick van der Ploeg
42b4b02df3
Fixed typos in comments throughout the project.
2015-12-07 12:15:52 -06:00
Ge Sen
7c3abdf974
Add whitespaces and erase redundant whitespaces.
2015-12-04 22:04:28 +08:00
Dave Abrahams
146d2daa9d
[stdlib] Add missing nullability to reflected NSString API
...
getBytes still lacks the ability to take an optional buffer, but Ali
agrees that we can leave that off for this release in light of the fact
that we have lengthOfBytesUsingEncoding.
Swift SVN r31223
2015-08-13 20:11:40 +00:00
Dmitri Hrybenko
a067fb004c
stdlib: re-add the part of the comment that was dropped during a refactoring
...
Swift SVN r31194
2015-08-12 23:41:58 +00:00
Dave Abrahams
06bb06452b
[stdlib] String.init(data: NSData, encoding: UInt)
...
Fixes <rdar://19872780>
Swift SVN r31191
2015-08-12 21:44:13 +00:00
Dave Abrahams
a8d56c3f54
[stdlib] Shuffle methods to keep comments in sync
...
Swift SVN r31190
2015-08-12 21:44:09 +00:00
Dave Abrahams
880f28b3fd
[stdlib] Add missing 10.10 NSString APIs.
...
containsString and localizedCaseInsensitiveContainsString were
introduced in 10.10, release-noted, but never
documented (<rdar://22236574>), so we missed them.
Fixes <rdar://18776075> String.containsString doesn't work in Swift
Swift SVN r31152
2015-08-12 00:37:43 +00:00
Dmitri Hrybenko
e587ef0086
SDK overlay: adopt @warn_unused_result
...
Swift SVN r31051
2015-08-06 15:54:52 +00:00
David Farler
8febbc1095
Suggest NSURL path methods instead of NSString
...
rdar://problem/22095657
Swift SVN r30978
2015-08-04 02:59:41 +00:00
David Farler
1f2390f1c7
Drop APIs from NSPathUtilities.h on String
...
rdar://problem/18848175
Swift SVN r30507
2015-07-22 22:12:56 +00:00
Joe Groff
d6f1178568
Foundation overlay: Deprecate String "PercentEscapesUsingEncoding" methods.
...
These have been superseded by newer APIs in Foundation, and Swift should follow suit. rdar://problem/21397308
Swift SVN r30356
2015-07-18 02:25:51 +00:00
Dmitri Hrybenko
687a70428d
Fix a warning in the SDK overlay
...
This change was committed and reverted multiple times over the past
month, but now it is safe since we have bumped the minimum required
SDKs.
Swift SVN r29269
2015-06-03 03:17:30 +00:00
Dmitri Hrybenko
1058f68bc6
Foundation overlay: add overlays for new NSString APIs
...
rdar://20856757
Swift SVN r29019
2015-05-26 03:29:01 +00:00
Ted Kremenek
a2c4ea971f
Revert "Foundation overlay: add overlays for new NSString APIs"
...
Revert until our Jenkins devices support the underlying NSString API. Keeping
this blocks iOS testing.
Swift SVN r28987
2015-05-24 16:55:25 +00:00
Dmitri Hrybenko
d45413efb8
Foundation overlay: add overlays for new NSString APIs
...
Swift SVN r28984
2015-05-24 10:39:21 +00:00
Joe Groff
32fb006386
Clang Importer: Enable OptionSetType import.
...
Update the tests to match.
Swift SVN r28906
2015-05-22 05:47:37 +00:00
Dmitri Hrybenko
53f3ccf850
stdlib: change CollectionType.count() into a property
...
Swift SVN r28829
2015-05-20 09:14:43 +00:00
Ted Kremenek
62feb5c949
Change @availability to @available.
...
This came out of today's language review meeting.
The intent is to match #available with the attribute
that describes availability.
This is a divergence from Objective-C.
Swift SVN r28484
2015-05-12 20:06:13 +00:00
Dave Abrahams
5c55682d8b
[stdlib] Capitalize keywords in doc comments
...
Again, the text is a lot more readable that way.
Swift SVN r28472
2015-05-12 16:59:13 +00:00
Dmitri Hrybenko
61214ec55b
stdlib: remove Sliceable conformance from String
...
Swift SVN r28442
2015-05-11 20:58:31 +00:00
Chris Lattner
c1df892d47
improve stdlib hygiene a bit.
...
Swift SVN r28392
2015-05-10 02:55:18 +00:00
Dmitri Hrybenko
e24c262d6e
Foundation overlay: add String.stringByApplyingTransform()
...
This API is new in OS X 10.11 and iOS 9.0.
rdar://20645458
Swift SVN r28315
2015-05-08 08:36:44 +00:00
Dmitri Hrybenko
8b392eeea9
Revert "Remove Array.count, it is redundant with protocol extensions"
...
This reverts commit r28247 while we discuss the change.
Swift SVN r28292
2015-05-07 21:45:30 +00:00
Ted Kremenek
7a96e55cde
Revert "Foundation overlay: add String.stringByApplyingTransform()"
...
Speculatively reverted because of iOS bot failure.
Swift SVN r28261
2015-05-07 14:00:16 +00:00
Dmitri Hrybenko
15a558f919
Foundation overlay: add String.stringByApplyingTransform()
...
This API is new in OS X 10.11 and iOS 9.0.
rdar://20645458
Swift SVN r28257
2015-05-07 06:54:15 +00:00