Guillaume Lessard
f5f02e2f6a
rename some tests
2024-10-06 10:26:27 -07:00
Guillaume Lessard
e9d7ea806a
require Span<T: BitwiseCopyable> to be aligned
2024-10-06 10:26:27 -07:00
Guillaume Lessard
ffebc71d54
OutputSpan modernization
2024-10-06 10:26:27 -07:00
Guillaume Lessard
7311e07ff9
tests for MutableSpan
2024-10-06 10:26:27 -07:00
Guillaume Lessard
cb84b912c2
Span test tweaks
2024-10-06 10:26:27 -07:00
Guillaume Lessard
82eeb9c6e9
restore span extensions to Foundation.Data
2024-10-06 10:26:27 -07:00
Guillaume Lessard
d374c35bdf
move OutputSpan-providing extensions to their own file
...
- and their tests, too
2024-10-06 10:24:55 -07:00
Guillaume Lessard
d1bc334b8c
add OutputSpan
2024-10-06 10:24:55 -07:00
Guillaume Lessard
fbabfd5d66
improve Span containment functions
2024-10-06 10:24:55 -07:00
Guillaume Lessard
c4435876d9
fix iterator test
2024-10-06 10:24:55 -07:00
Guillaume Lessard
8aebaa3ea8
improve RawSpan containment
2024-10-06 10:24:55 -07:00
Guillaume Lessard
bd528968fc
Span iterator draft
2024-10-06 10:24:55 -07:00
Guillaume Lessard
91506824d0
RawSpan review feedback
2024-10-06 10:24:55 -07:00
Guillaume Lessard
6d0848fc7f
improve standard library Span extensions
2024-10-06 10:24:55 -07:00
Guillaume Lessard
e261fe68c9
updates to Span
2024-10-06 10:24:55 -07:00
Guillaume Lessard
3fda314bcd
updates to RawSpan
2024-10-06 10:24:55 -07:00
Guillaume Lessard
c290bd3d04
Copy Span prototype to its own branch
2024-10-06 10:24:54 -07:00
Karoy Lorentey
f6c1d3e348
[Tests] DynoArrayTests → DynamicArrayTests
2024-09-01 20:52:36 -07:00
Karoy Lorentey
3c66dab3b0
[Deque] Turn Deque<T> into a Shared<RigidDeque<T>>
2024-09-01 20:46:43 -07:00
Karoy Lorentey
5d51572d69
[Deque] Stop using ManagedBuffer
...
Instead, just have a regular class holding a HypoDeque. This requires two allocations per deque, but it makes representation a lot more straightforward.
I do not have a workable solution for empty singletons, though.
2024-08-06 19:17:04 -07:00
Karoy Lorentey
774be11219
[Future] Add HypoArray and DynoArray
2024-08-06 10:44:12 -07:00
Karoy Lorentey
d58c5b60a5
Merge branch 'main' into future
...
# Conflicts:
# Sources/CMakeLists.txt
# Sources/InternalCollectionsUtilities/Compatibility/UnsafeMutableBufferPointer+SE-0370.swift.gyb
# Sources/InternalCollectionsUtilities/Compatibility/UnsafeMutablePointer+SE-0370.swift.gyb
# Sources/InternalCollectionsUtilities/Compatibility/UnsafeRawPointer extensions.swift.gyb
# Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeMutableBufferPointer+SE-0370.swift
# Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeMutablePointer+SE-0370.swift
# Sources/InternalCollectionsUtilities/Compatibility/autogenerated/UnsafeRawPointer extensions.swift
# Sources/InternalCollectionsUtilities/Specialize.swift.gyb
# Sources/InternalCollectionsUtilities/autogenerated/Specialize.swift
2024-08-05 20:31:30 -07:00
Guillaume Lessard
fe649d9a4c
add convenience initializers for Span
2024-07-16 08:56:22 -07:00
Guillaume Lessard
c0d0230905
add convenience initializers for RawSpan
2024-07-16 08:55:15 -07:00
Guillaume Lessard
6f4d9d8560
improve internal representation of RawSpan
2024-07-14 04:31:13 -07:00
Guillaume Lessard
b7aab16cce
improve internal representation of Span
2024-07-14 04:22:33 -07:00
Guillaume Lessard
fefc900b92
changed uncheckedBounds to just unchecked
2024-07-02 14:02:58 -07:00
Alejandro Alonso
9c4d47328e
Add box and cell tests
2024-07-02 11:26:50 -07:00
Guillaume Lessard
f049c7ae66
better document unsafe operations of RawSpan
2024-06-28 18:35:37 -07:00
Guillaume Lessard
99b025049e
add utilities to determine span containment relationships
2024-06-26 16:40:27 -07:00
Guillaume Lessard
ce574378f8
improve bounds-checking and bounds-validation api
2024-06-25 10:27:59 -07:00
Guillaume Lessard
b7ccc7206c
use byteCount instead of count for RawSpan
...
- use the label `byteOffset` more consistently
2024-06-20 15:05:33 -07:00
Guillaume Lessard
539d11545e
de-emphasize indices property on Span
2024-06-20 15:00:29 -07:00
Guillaume Lessard
5c2623b1a8
add tests for ContiguousStorage
2024-06-20 01:32:12 -07:00
Guillaume Lessard
228f3f3422
fix tests and ContiguousStorage
2024-06-19 18:10:42 -07:00
Guillaume Lessard
b30103588f
Rename prefix, suffix, dropFirst and dropLast
2024-06-17 11:09:30 -07:00
Guillaume Lessard
7f26f2705c
Rename elementsEqual with an underscore
2024-06-14 12:47:25 -07:00
Guillaume Lessard
fc451765e9
rename a property of RawSpan
2024-06-14 12:44:12 -07:00
Guillaume Lessard
e94873a993
add Span and RawSpan, with tests
2024-06-14 11:31:48 -07:00
Guillaume Lessard
7b0599c529
fix autoclosure capture issue
2024-06-13 18:40:52 -07:00
Alejandro Alonso
908dafa21b
Introduce the Inout type
2024-06-12 13:52:12 -07:00
Karoy Lorentey
ad79ce5b6a
Merge branch 'release/1.1'
...
# Conflicts:
# .swiftci/5_10_ubuntu2204
# .swiftci/5_7_ubuntu2204
# .swiftci/5_8_ubuntu2204
# .swiftci/5_9_ubuntu2204
# .swiftci/nightly_6_0_macos
# .swiftci/nightly_6_0_ubuntu2204
# .swiftci/nightly_main_macos
# .swiftci/nightly_main_ubuntu2204
2024-06-05 10:28:47 -07:00
Karoy Lorentey
6c31865359
[test] Add tests for Rope.join’s copy-on-write behavior
2024-05-31 16:59:25 -07:00
Karoy Lorentey
35d5746117
Rename _CollectionsUtilities to InternalCollectionsUtilities
...
We are forced to do this due to an Xcode issue (#364 ) with underscored module names.
This module remains unstable, despite the removal of the underscore. Directly importing it from outside the package remains unsupported. This module and/or its entire contents may go away or change in incompatible ways in any future swift-collections release.
2024-05-29 14:00:13 -07:00
Karoy Lorentey
e9112f40dd
[test] TreeDictionary.Keys: Remove stray print that’s flooding test output
2024-04-23 15:53:40 -07:00
Karoy Lorentey
e004cd36fa
Merge branch 'release/1.1' into merge.1.1→main
...
# Conflicts:
# CMakeLists.txt
# README.md
2024-02-07 17:35:40 -08:00
Karoy Lorentey
94cf62b3ba
Merge pull request #352 from vanvoorden/vanvoorden/tree-dictionary-keys-equality
...
[TreeDictionary][Keys] Add Equatable and Hashable Conformance to TreeDictionary.Keys
2024-02-06 18:58:46 -08:00
Rick van Voorden
c61e5e23c8
tree dictionary keys hashable cleanup
2024-02-06 17:26:21 -08:00
Rick van Voorden
a04721360b
tree dictionary keys hashable cleanup
2024-02-06 16:25:33 -08:00
Rick van Voorden
ffa9e65ccc
wip tree dictionary keys hashable
2024-02-06 15:58:31 -08:00