ChimeHQ/Rearrange
Swift library for working with ranges types: NSRange, IndexSet, and String.Index
24 Releases
Latest: 1mo ago
v2.1.12.1.1Latest
📋 Changes
- `NSRange.init<Calculator: TextRangeCalculating>(_ textRange: Calculator.TextRange, with calculator: Calculator)`
v2.1.02.1.0
📋 Changes
- Introduce `TextRangeCalculating` concept
v2.0.02.0.0
📋 Changes
- Swift 6 compatibility
- Remove `NSTextLocation` comparable extensions
- Fix a bug that could cause `IndexSet(range)` to be extremely slow
v1.8.11.8.1
📋 Changes
- Better Catalyst and visionOS support
v1.8.01.8.0
📋 Changes
- `IndexSet` apply mutation
v1.7.01.7.0
📋 Changes
- IndexSet range array initializer
- Support for NSTextLocation comparisons
v1.6.01.6.0
📋 Changes
- `RangeMutation` now conforms to `Sendable`
v1.5.31.5.3
📋 Changes
- change preconditions to assertions
v1.5.21.5.2
Range convenience methods for `String`
v1.5.11.5.1
📋 Changes
- `RangeMutation` is now `Hashable`
v1.5.01.5.0
📋 Changes
- improved platform and Swift version support
v1.4.01.4.0
📋 Changes
- Helpers for `NSTextRange`
v1.3.21.3.2
📋 Changes
- IndexSet transformation
v1.3.11.3.1
📋 Changes
- IndexSet intersets
- Better `NSNotFound` handling
1.3.0
📋 Changes
- .notFound constant
- better handling for NSNotFound
v1.2.01.2.0
📋 Changes
- Expanded IndexSet support
- range clamp API
v1.1.61.1.6
New API for for overlap/affect detection
v1.1.51.1.5
📋 Changes
- Documentation for limitSpanningRange
- NSRange now conforms to Sequence
v1.1.41.1.4
Fixes to how NSRange.apply checks invariants
v1.1.31.1.3
Improve invariant checks for range mutation transformations
v1.1.21.1.2
📋 Changes
- few more `IndexSet` extensions
- fixed up `RangeMutation` checks
- fixed a subtle `RangeMutation` bug
v1.1.11.1.1
📋 Changes
- Fixes for multiplatform testing
- Expanded documentation
v1.11.1
IndexSet helpers
v1.01.0
First release!
