Karoy Lorentey
51ef8613c2
Underscore more internals
2023-03-20 22:27:32 -07:00
Karoy Lorentey
0ad7f0ce38
_BString → BigString
2023-03-20 21:20:30 -07:00
Karoy Lorentey
535b8b8562
Fix compatbility with Swift toolchains below 5.8
2023-03-20 14:25:28 -07:00
Karoy Lorentey
ddcd1788aa
Unconditionally enable use of _CharacterRecognizer’s Equatable conformance if we aren’t building a package
2023-03-20 13:12:14 -07:00
Karoy Lorentey
b5e3bee275
_BString.Index: Add alignment bits
...
Use them to speed up index rounding.
(And, somewhat questionably, subscripting.)
2023-03-20 13:12:11 -07:00
Karoy Lorentey
7444bb24cb
_CharacterRecognizer don’t use conformances that aren’t in the Xcode 14.3 beta
2023-03-20 13:12:11 -07:00
Karoy Lorentey
85a43d9ac6
_BString: Add a substring types and actual collection views
...
This is more of a technical workaround, as it allows
running generic algorithms on these things. That said,
we could embrace this in general, and sink the
`utf8Index(after:)`, `characterIndex(before:)` etc
function down into these views, instead of having them
on the top level.
2023-03-20 13:12:11 -07:00
Karoy Lorentey
605e45b9b9
_BString: Additional fixes and new functionality
...
- New methods for rounding up indices
- Sendable conformances
- Fix UTF-16 strings sometimes leaking into chunks
- Iterator improvements / rewrites, incl. a chunked UTF-8
buffer iterator.
- Support for comparing and hashing UTF-8 slices.
2023-03-20 13:12:10 -07:00
Karoy Lorentey
79bdcb66eb
Implement path caching in indices
2023-03-20 13:12:10 -07:00
Karoy Lorentey
8c8cb5622b
Restrict BIgString and _BString to Swift 5.8 and macOS 13.3 /iOS 16.4/etc
...
These types heavily rely on stdlib functionality that ships in
Swift 5.8; they do not run correctly on earlier releases.
2023-03-20 13:12:09 -07:00
Karoy Lorentey
283d4071bc
Assorted bug fixes and refinements
2023-03-20 13:12:08 -07:00
Karoy Lorentey
18aa309f75
Generalize some _BString iterators
2023-03-20 13:12:07 -07:00
Karoy Lorentey
eabd941799
Add some operations taking subsequences
2023-03-20 13:12:07 -07:00
Karoy Lorentey
150a165d73
Add experimental rope implementation
2023-03-20 13:11:21 -07:00