12 Commits

Author SHA1 Message Date
Karoy Lorentey
c46afaf068
rdar://105027055: Improve AttributedString view slicing (#92)
* rdar://105027055: Do not use as-casts in specializations.

Introduce _specializingCast and use it instead of `as?`-casts inside
if ladders that implement generic specialization.

`as?` invokes undesirable runtime machinery such as bridging checks.

* rdar://105027055: Ensure AttributedString views have properly aligned bounds

* rdar://105027055: Implement index(_:offsetBy:limitedBy:) in AttributedString views
2023-05-08 11:17:35 -07:00
Jeremy Schonfeld
61ff810564
rdar://107768277 (AttributeScope.attributeKeyType(matching:) is fairly slow and is a bottleneck for AttributedString conversion) 2023-05-01 09:56:00 -07:00
Alexander Cyon
09606b457d
Fix typos (#68) 2023-04-29 06:28:00 -07:00
Hristo Staykov
fec24b0db1
rdar://108534616 (Rename agreeWithReplacement to agreeWithArgument) (#77)
We have agreed that `agreeWithArgument` sounds more intuitive to localizers than
`agreeWithReplacement`. This attribute hasn't been adopted internally yet, so we
can afford to rename it just before the SDK freeze.
2023-04-27 14:31:49 -07:00
Jeremy Schonfeld
985f782734
rdar://101354563 (Codable Support for Predicate)
* (101354563) Separate CodableWithConfiguration into standalone file

* (101354563) Update PredicateExpression archive formats

* (101354563) Codable Support for Predicate

* (101354563) Assert on unsupported keypaths
2023-04-26 12:57:40 -07:00
Karoy Lorentey
e9b2f68e8a
rdar://107778676 Stop vendoring the Collections package (#50)
* rdar://107778676 Stop vendoring the Collections package

* rdar://107778676 Fix test expectation

AttributedString.CharacterView needs to round all indices down to the
nearest Character boundary to avoid semantic issues with its
Collection conformance. This means that CharacterView slices can never
start or end in between Character boundaries.

* Remove a stray print statement
2023-04-25 13:44:02 -07:00
Jeremy Schonfeld
74559afbea
rdar://104093459 (Adopt the new Reflection Package to AttributedString) (#48) 2023-04-19 11:21:17 -07:00
Tony Parker
d1cc2ea0a2
Add some links to known issues to TODOs (#47) 2023-04-18 14:53:06 -07:00
Jeremy Schonfeld
82baceef48 rdar://100474708 (Make AttributedString Sendable) 2023-04-03 10:41:22 -07:00
Jeremy Schonfeld
99a3c9f4ad
(106775060) Add TODO notes around disabled tests and functionality 2023-03-23 13:26:07 -07:00
Jeremy Schonfeld
8ce51672b6
(106775060) Update AttributedString sources for compatibility with FoundationPreview 2023-03-23 13:26:07 -07:00
Jeremy Schonfeld
b03b3032d2
(106775060) Move AttributedString sources to FoundationPreview 2023-03-23 13:26:00 -07:00