Overview
Comment: | string_slices-slice_sets: drop uneeded mutability of string references |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7521b2a2e6de6d19d30c82c73381f6c5 |
User & Date: | nat on 2017-06-13 19:15:59 |
Other Links: | manifest | tags |
Context
2017-06-14
| ||
20:58 | string_slices: new callback-based constructor check-in: cd40fb63c6 user: nat tags: trunk | |
2017-06-13
| ||
19:15 | string_slices-slice_sets: drop uneeded mutability of string references check-in: 7521b2a2e6 user: nat tags: trunk | |
2017-06-12
| ||
19:15 | string_slices: use an immutable reference to protect from overwriting check-in: 74bf50894a user: nat tags: trunk | |
Changes
Modified src/natools-string_slices-slice_sets.adb from [5c501d728f] to [1f8038645d].
1 | 1 2 3 4 5 6 7 8 9 | - + | ------------------------------------------------------------------------------ |
︙ | |||
563 564 565 566 567 568 569 | 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 | - + | end if; Set.Bounds.Insert (Bounds); end Add_Slice; procedure Add_Slice (Set : in out Slice_Set; S : in Slice) is |
︙ | |||
619 620 621 622 623 624 625 | 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 | - + | end if; Include_Range (Set.Bounds, Bounds); end Include_Slice; procedure Include_Slice (Set : in out Slice_Set; S : in Slice) is |
︙ |
Modified src/natools-string_slices-slice_sets.ads from [1e859d6e55] to [f937fc3f1f].
1 | 1 2 3 4 5 6 7 8 9 | - + | ------------------------------------------------------------------------------ |
︙ | |||
223 224 225 226 227 228 229 | 223 224 225 226 227 228 229 230 231 232 233 | - + | procedure Include_Range (Set : in out Range_Set; Bounds : in String_Range); procedure Exclude_Range (Set : in out Range_Set; Bounds : in String_Range); -- Perform ensemble union and subtraction of index sets type Slice_Set is tagged record Bounds : Range_Set; |