Commit Graph

104 Commits

Author SHA1 Message Date
Dmitri Gribenko
2b35fea059 Merge remote-tracking branch 'origin/master' into swift-3-indexing-model 2016-04-16 00:30:12 -07:00
Chris Lattner
4fd8418ba7 move the stdlib to put noescape and autoclosure on the type, instead of
the parameter.  Progress towards SE-0049.
2016-04-14 23:13:43 -07:00
Dmitri Gribenko
10697f939f Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model 2016-04-14 13:45:27 -07:00
Dmitri Gribenko
d52cbab5c2 Merge commit '0ff3239b962218267d37307e53906b31315a1cfc' into swift-3-indexing-model
This commit is the parent of the commit that implemented SE-0046
Establish consistent label behavior across all parameters including
first labels
2016-04-09 16:18:33 -07:00
Manav Gabhawala
7928140f79 [SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary 2016-04-06 20:21:58 -04:00
Dmitri Gribenko
6985b958fd Merge remote-tracking branch 'origin/master' into swift-3-indexing-model 2016-04-04 11:42:17 -07:00
practicalswift
abfecfde17 [gardening] if ([space]…[space]) → if (…), for(…) → for (…), while(…) → while (…), [[space]x, y[space]] → [x, y] 2016-04-04 16:22:11 +02:00
Slava Pestov
7b91cbd551 stdlib: Add @_versioned attributes needed for resilient build 2016-04-01 13:07:18 -07:00
Dave Abrahams
8e4f85277b Merge remote-tracking branch 'refs/remotes/origin/master' into merge 2016-03-29 09:19:34 -07:00
Dave Abrahams
01127b32d5 index(n, stepsFrom: i)
M-x findr-query-replace

\<advance(\([^:]+?\),\([
]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[
]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?)

index(\3,\2stepsFrom: \1\4)
2016-03-25 17:54:39 -07:00
practicalswift
d00a5ef814 [gardening] Weekly gardening: typos, duplicate includes, header formatting, etc. 2016-03-24 22:41:10 +01:00
Patrick Pijnappel
ffe864687a [stdlib] Clarify buffer comments in UTF8._decodeOne() 2016-03-22 22:33:13 +11:00
Patrick Pijnappel
771a81594f [stdlib] Fix indentation in Unicode.swift 2016-03-17 06:41:59 +11:00
Patrick Pijnappel
7e0945e7ac [stdlib] Use explicit internal in Unicode.swift 2016-03-17 06:23:19 +11:00
Patrick Pijnappel
4d3d7234aa [stdlib] Replace usages of generator with iterator 2016-03-17 05:50:05 +11:00
Patrick Pijnappel
43bca074cd [stdlib] Fix doc comment for UnicodeScalar.encode() 2016-03-14 12:07:09 +11:00
Patrick Pijnappel
549f7e298e [stdlib] Fix incorrect merge 4d05dc69 2016-03-14 09:23:02 +11:00
Patrick Pijnappel
2ec57104ac [stdlib] Format and clarify documentation in Unicode.swift 2016-03-13 20:53:02 +11:00
Patrick Pijnappel
4d05dc69a1 [stdlib] Resolve merge conflict in Unicode.swift 2016-03-13 14:08:23 +11:00
Dmitri Gribenko
3cde854287 Merge remote-tracking branch 'origin/master' into swift-3-indexing-model 2016-03-12 01:11:32 -08:00
Daniel Duan
276370b599 [stdlib] apply SE-0040 to stdlib 2016-03-11 16:01:41 -08:00
Rintaro Ishizaki
8891eb638b [stdlib] Add @noescape to output parameter of UnicodeCodecType.encode
Conformance:
 - UTF8.encode
 - UTF16.encode
 - UTF32.encode

Related functions:
 - transcode
 - String._encode
 - _StringCore.encode
2016-03-09 22:10:04 -08:00
Dmitri Gribenko
886d5a707c Merge remote-tracking branch 'origin/master' into swift-3-indexing-model 2016-03-09 20:51:38 -08:00
Max Moiseev
02006f20bc Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-09 16:05:03 -08:00
Max Moiseev
1fae0d1325 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-08 12:48:48 -08:00
Rintaro Ishizaki
4f1a4ecd62 [stdlib] Add @noescape to output parameter of UnicodeCodecType.encode
Conformance:
 - UTF8.encode
 - UTF16.encode
 - UTF32.encode

Related functions:
 - transcode
 - String._encode
 - _StringCore.encode
2016-03-08 17:34:15 +09:00
Max Moiseev
7fe6916bf6 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-07 12:10:47 -08:00
Rintaro Ishizaki
1b54593362 [stdlib] Simplify transcode implementation 2016-03-08 02:04:32 +09:00
Ted Kremenek
90ce8daf0b Merge pull request #1552 from hughbe/stdlib-newlines
[gardening] Remove double new lines from stdlib files
2016-03-05 14:40:04 -08:00
Hugh Bellamy
c1b25bb32f [gardening] Remove double new lines from stdlib files 2016-03-05 15:44:54 +00:00
Patrick Pijnappel
636423c4ec [stdlib] Minor refactor for clarity in UTF8.decode() 2016-03-05 11:01:54 +11:00
Patrick Pijnappel
c109bb2a19 [stdlib] Copy warning to docs of all UnicodeCodecTypes 2016-03-05 09:49:44 +11:00
Patrick Pijnappel
500dc9d7bc [stdlib] Fix bitshift operand mask in UTF8.decode() 2016-03-05 09:48:03 +11:00
Shawn Erickson
fe42606062 [stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex into their Collection equivalents 2016-03-04 07:40:59 -08:00
Patrick Pijnappel
17124c886f [stdlib] Clarify variable name in UTF8
_atEnd was confusing because it did not mean 'at the end of the sequence', because of buffering.
2016-03-04 10:31:36 +11:00
Patrick Pijnappel
f5d7bd266c [stdlib] Improve comments in UTF8 2016-03-04 10:27:56 +11:00
Patrick Pijnappel
25b5028a6c [stdlib] Improve UTF8._decodeOne() doc comment
Based on the API Design Guidelines.
2016-03-04 09:53:38 +11:00
Max Moiseev
cf4bafe9e3 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-03 13:22:03 -08:00
Patrick Pijnappel
49741cfdd9 [stdlib] Rewrite UTF8 decoding 2016-03-03 23:30:00 +11:00
Max Moiseev
859db53d87 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-03-01 12:56:26 -08:00
Max Moiseev
e48f452a2e Merge remote-tracking branch 'origin/swift-3-api-guidelines' into swift-3-api-guidelines 2016-02-29 12:15:33 -08:00
Max Moiseev
a49dab6bf8 Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2016-02-29 12:08:52 -08:00
Patrick Pijnappel
7c7be3dc00 [stdlib] Add @testable for _isValidUTF8() 2016-02-29 08:09:46 +11:00
Patrick Pijnappel
f783558111 [stdlib] Refactor UTF8._isValidUTF() to be useable throughout stdlib
This is as a replacement for usages of UTF8._numTrailingBytes().
Note that the sanityCheck was redundant at both call sites.
2016-02-28 18:48:41 +11:00
Patrick Pijnappel
04f760d836 [stdlib] Fix comments 2016-02-28 16:12:11 +11:00
Patrick Pijnappel
95ea76717c [stdlib] Rewrite UTF8._isValidUTF8() 2016-02-28 15:38:52 +11:00
Daniel Duan
2bc78b8c09 [stdlib] update for 'inout' adjustment (SE-0031) 2016-02-26 12:02:29 -08:00
Dmitri Gribenko
836e7785f9 stdlib: UTF16.measure() => .transcodedLength() 2016-02-25 15:06:00 -08:00
Dmitri Gribenko
6bb8045a72 stdlib: add better argument labels to transcode() 2016-02-25 14:53:52 -08:00
Dmitri Gribenko
f6b271913b stdlib: replace UnicodeDecodingResult.isEmptyInput with Equatable 2016-02-24 21:01:35 -08:00