Karoy Lorentey
b022b7fee5
Make _BString and _Rope public
2023-03-20 18:36:37 -07:00
Karoy Lorentey
d79a752fc8
_BString: Review views & add missing functionality/shortcuts
2023-03-20 13:12:13 -07:00
Karoy Lorentey
03d7c43c22
_BString: Add index rounding methods to all views
2023-03-20 13:12:12 -07:00
Karoy Lorentey
258d22947c
_BString: Review Equatable implementations
2023-03-20 13:12:12 -07:00
Karoy Lorentey
abf5dfd260
_BSubstring: Conform to Comparable
2023-03-20 13:12:12 -07:00
Karoy Lorentey
a10439bc32
_BString, _BSubstring: Merge character views into top-level types. Add RangeReplaceableCollection conformances.
...
This emulates the standard String.
2023-03-20 13:12:12 -07:00
Karoy Lorentey
e0f8305a99
_BString.hashUTF8(into:from:end:): Fix typo
...
- The original code accidentally used `start` instead of `end` to normalize the end of the range, so it did not actually hash any actual string contents.
- While we’re here, extract the task of iterating over substring chunks into a reusable standalone method.
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
8f48c3ae37
More assorted bug fixes and refinements
2023-03-20 13:12:09 -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
150a165d73
Add experimental rope implementation
2023-03-20 13:11:21 -07:00