Dave Abrahams
c497969987
[stdlib] Swift4 Modernizations Compatible with Swift 3.2
2017-07-14 17:54:33 -07:00
Dave Abrahams
9159239995
Un-revert "[stdlib] String index interchange, etc." ( #10812 )
...
I failed to merge the upstream changes to swift-corelibs-foundation at the same
time as I merged that #9806 , and it broke on linux. Going to get it right this
time.
2017-07-07 12:13:25 -07:00
Xi Ge
d9fb110674
Revert "[stdlib] String index interchange, etc." ( #10812 )
...
rdar://33186295
2017-07-07 12:03:16 -07:00
Dave Abrahams
b1d2f4c68e
[stdlib] String index interchange, part III (UTF8)
2017-07-07 06:15:24 -07:00
Dave Abrahams
2e0bb2f533
[stdlib] String index interchange, part II (UTF16)
2017-07-07 06:15:23 -07:00
Dave Abrahams
e523c80339
[stdlib] Index interchange, part I
2017-07-07 00:59:04 -07:00
Dave Abrahams
d6fee05375
[stdlib] Enable interchange among StringProtocol models
2017-05-17 17:21:43 -07:00
Nate Cook
f650e0a7da
[stdlib] String and range expressions
...
* finish string documentation revisions
* revise examples throughout to use range expressions instead of e.g.
prefix(upTo: _)
2017-05-13 10:06:12 -05:00
Nate Cook
7fa74f590d
[stdlib] Documentation revisions for string + ranges
...
* removing .characters from examples
* beginning new String doc revisions
* improvements to the String Foundation overlay docs
* minor revisions elsewhere
2017-05-13 10:06:05 -05:00
Max Moiseev
27889c6376
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-06 15:54:44 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Max Moiseev
70b2343626
Merge branch 'master' into new-integer-protocols
2016-11-28 15:25:01 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Max Moiseev
f34808be11
using masking shifts
2016-11-14 10:16:28 -08:00
Nate Cook
c2bc72d9d6
[stdlib] Fix string index sharing ( #4896 )
...
* [stdlib] Fix String.UTF16View index sharing
* [stdlib] Fix String.UnicodeScalarView index sharing
* [stdlib] Fix String.CharacterView index sharing
* [stdlib] Test advancing string indices past their ends
* [stdlib] Simplify CharacterView ranged subscript
2016-10-13 10:19:38 -07:00
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Nicholas Maccharoli
7c94da957e
[stdlib] Simplify constructor for StringUTF16
2016-08-30 20:29:39 +09:00
Robert Widmann
4c2dbe1723
[stdlib][SE-0089] Finish off Lossless String Conversion ( #3761 )
...
* Rename string reflection init
* Addressing PR comments and updating some tests
* Update test suite for lossless string conversion
2016-07-28 17:13:25 -07:00
Nate Cook
58fb4ef9c5
[stdlib] Clean up various documentation issues ( #3804 )
...
* [stdlib] Clean up some documentation formatting
* [stdlib] Update example code for SE-0103
* [stdlib] Fix UnsafeBufferPointer documentation typo
* [stdlib] Collection documentation cleanup
* [stdlib] Fix String.init?(_:UTF16View) description
* [stdlib] Documentation fixes for SE-0091
* [stdlib] Add param info for String(repeating:count:)
2016-07-28 11:25:38 -07:00
Doug Gregor
0bf7c005b3
[SE-0091 Follow-up] Move global operators for non-generic concrete types into the type.
...
In various cases where we had global operators for non-generic
concrete types (such as String + String), move those operators into
the type. This should not affect the sources, but makes the exposition
of the library cleaner.
Plus, it's a good test for the compiler, which uncovered a few issues
where the compiler was coupled with the library.
2016-07-21 12:54:27 -07:00
Nate Cook
c9278a1b50
[stdlib] Remove _StringCore from UTF8View.Index
2016-07-12 09:29:40 -05:00
practicalswift
af9786efc2
[gardening] Remove duplicate words.
2016-06-04 23:16:27 +02:00
Nate Cook
44b2d56a7f
[stdlib] Revise documentation for string-related types
...
This documentation revision covers a large number of types & protocols:
String, its views and their indices, the Unicode codec types and protocol,
as well as Character, UnicodeScalar, and StaticString, among others.
This also includes a few small changes across the standard library for
consistency.
2016-05-22 03:04:22 -05:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
Mark Lacey
e03d334b68
Use Builtin.unreachable() in unavailable functions.
...
Saves a bit of code size in the standard library by eliminating some
static strings and function calls.
rdar://problem/25767016
2016-05-02 21:30:25 -07:00
Dave Abrahams
9bee5d182f
[stdlib] location/formLocation => index/formIndex
2016-04-26 17:46:16 -07:00
Dmitri Gribenko
520d4ccccb
stdlib: add ABI fixmes in String
2016-04-21 18:57:05 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
Dmitri Gribenko
735f1287b0
Merge remote-tracking branch 'origin/swift-3-indexing-model' into swift-3-indexing-model
2016-04-14 14:10:27 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
Max Moiseev
37bf02f7da
[stdlib][swift-3-indexing-model] changes in index(_:stepsFrom:limitedBy:)
...
- index(_:stepsFrom:limitedBy:) returns Index?
- formIndex(_:stepsFrom:limitedBy) returns Bool
2016-04-14 11:49:27 -07:00
Nate Cook
6b77c6a979
[New indexing model] Update documentation comments with new APIs
...
Most of these were successor() -> successor(of:).
2016-04-08 01:01:58 -05:00
Dave Abrahams
da5c4036ac
func index(n: IndexDistance, stepsFrom i: Index)
...
M-x findr-query-replace
\<func advance(\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,[
]*\)by \([^(),]*\|[^(),]+([^()]*)[^(),]*\)
func index(\3\2stepsFrom \1
2016-03-28 13:23:04 -07:00
Dave Abrahams
81d3e8ca83
limit: => limitedBy:, pt 2
...
M-x findr-query-replace
\<limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\))\( *\(?:[^ -]\|-[^>]\)\)
limitedBy: \1)\2
2016-03-28 13:12:02 -07:00
Dave Abrahams
4d651f8fc0
limit: => limitedBy:, pt 1
...
M-x findr-query-replace
\(,[
]*\)limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\)) ->
\1limitedBy limit: \2) ->
2016-03-28 13:03:59 -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
Dave Abrahams
11259d1d14
[stdlib] indexing model: rename in-place indexing
...
This time, choose something that's at least compliant with the API
guidelines.
2016-03-23 17:16:20 -07:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Dmitri Gribenko
d9a2b45449
New indexing model: tighten requirements on *Collection.Indices
2016-03-22 16:37:21 -07:00
Dave Abrahams
f493b54e44
[stdlib] indexing model: Interval/Range merge
...
This is step 1; we still need to introduce ClosedRange.
2016-03-16 15:59:10 -07: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
Shawn Erickson
db7f2a87dd
improved String and StringUTF16, reapplied mistakenly stashed changes to Filter
2016-03-08 21:09:35 -08:00
Shawn Erickson
7a84232a06
improve and clean up StringXxxx (note a couple compile errors remain in dependent files)
2016-03-08 15:04:45 -08:00
Shawn Erickson
175c3cd136
dealt with issues and suggestions outlined in PR1559
2016-03-06 22:13:18 -08:00
Shawn Erickson
0db3a29987
fleshing out Collection.next(Index)
...
-removed fatal stub Collection.next(Index)
-added default Collection.next(Index) where Index is Strideable
-added custom next(Index) on some collections
-added fatal stub next(Index) on some collections
2016-03-06 17:37:40 -08:00
Dmitri Gribenko
ad1428e1d6
New collection indexing model: removed old index protocols
...
... and started to fix compiler errors.
2016-03-06 01:53:34 -08:00
Chris Willmore
c305ea03e4
stdlib: Audit StringUTF16.swift, StringUTF8.swift for Swift 3 naming.
2016-02-24 17:29:24 -08:00
Dmitri Gribenko
f3389273ba
stdlib: String indices: samePositionIn(_:) => samePosition(in:)
2016-02-24 16:29:27 -08:00
Dmitri Gribenko
63481be8bd
stdlib: lowercase cases of the PlaygroundQuickLook enum
2016-02-20 00:55:35 -08:00