| 1 | #cxx . . $ `<file>/dwsys/Collection_extensions.h`/ifndef _Collection_extensions_h_ |
| 2 | #define _Collection_extensions_h_cxx . . $ `dwsys/Collection_extensions.h:2:9`! |
| 3 | /* Collection_extensions.h |
| 4 | * |
| 5 | * Copyright (C) 1994-2019,2022 David Weenink, 2015,2018,2025 Paul Boersma |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 3 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "Collection.h"cxx . . $ `<file>/sys/Collection.h`/ |
| 22 | #include "Graphics.h"cxx . . $ `<file>/sys/Graphics.h`/ |
| 23 | #include "Permutation.h"cxx . . $ `<file>/dwsys/Permutation.h`/ |
| 24 | |
| 25 | autoCollectioncxx . . $ autoCollection# Collection_Permutation_permuteItemscxx . . $ Collection_Permutation_permuteItems(81cbd16516e29bd3). (Collectioncxx . . $ Collection# me, Permutationcxx . . $ Permutation# him); |
| 26 | void Collection_Permutation_permuteItems_inplacecxx . . $ Collection_Permutation_permuteItems_inplace(b0d7f5232735fd18). (Collectioncxx . . $ Collection# me, Permutationcxx . . $ Permutation# him); |
| 27 | |
| 28 | autoCollectioncxx . . $ autoCollection# Collection_permuteItemscxx . . $ Collection_permuteItems(aa26bbe147e98615). (Collectioncxx . . $ Collection# me); |
| 29 | void Collection_permuteItems_inplacecxx . . $ Collection_permuteItems_inplace(3082ebad2d2ba03e). (Collectioncxx . . $ Collection# me); |
| 30 | |
| 31 | /* permute the order of my items */ |
| 32 | |
| 33 | int OrderedOfString_appendcxx . . $ OrderedOfString_append(ade3ccabe4a97830). (StringListcxx . . $ StringList# me, conststring32cxx . . $ conststring32# append); |
| 34 | |
| 35 | autoStringListcxx . . $ autoStringList# OrderedOfString_joinItemscxx . . $ OrderedOfString_joinItems(6f6c1fc1c2908ae0). (StringListcxx . . $ StringList# me, StringListcxx . . $ StringList# thee); |
| 36 | /* Join each item */ |
| 37 | |
| 38 | autoStringSetcxx . . $ autoStringSet# StringList_to_StringSetcxx . . $ StringList_to_StringSet(7909a6d728cc3eb9). (StringListcxx . . $ StringList# me); |
| 39 | |
| 40 | double OrderedOfString_getFractionDifferentcxx . . $ OrderedOfString_getFractionDifferent(16d90c4069fbd4a9). (StringListcxx . . $ StringList# me, StringListcxx . . $ StringList# thee); |
| 41 | |
| 42 | integercxx . . $ integer# OrderedOfString_getNumberOfDifferencescxx . . $ OrderedOfString_getNumberOfDifferences(31bf98e6d26bf24a). (StringListcxx . . $ StringList# me, StringListcxx . . $ StringList# thee); |
| 43 | |
| 44 | integercxx . . $ integer# OrderedOfString_indexOfItemcxx . . $ OrderedOfString_indexOfItem(928234153fbd418c). (StringListcxx . . $ StringList# me, conststring32cxx . . $ conststring32# str); |
| 45 | |
| 46 | void OrderedOfString_initWithSequentialNumberscxx . . $ OrderedOfString_initWithSequentialNumbers(58a263e574586e4d). (StringListcxx . . $ StringList# me, integercxx . . $ integer# n); |
| 47 | |
| 48 | void OrderedOfString_removeOccurrencescxx . . $ OrderedOfString_removeOccurrences(ebb70887ac3e0615). (StringListcxx . . $ StringList# me, conststring32cxx . . $ conststring32# search, bool use_regexp); |
| 49 | |
| 50 | void OrderedOfString_changeStringscxx . . $ OrderedOfString_changeStrings(c5178fa59d9873d3). (StringListcxx . . $ StringList# me, char32cxx . . $ char32# *search, char32cxx . . $ char32# *replace, |
| 51 | integercxx . . $ integer# maximumNumberOfReplaces, integercxx . . $ integer# *out_numberOfMatches, integercxx . . $ integer# *out_numberOfStringmatches, bool use_regexp); |
| 52 | |
| 53 | bool OrderedOfString_containSameElementscxx . . $ OrderedOfString_containSameElements(b2354a120c35201e). (StringListcxx . . $ StringList# me, StringListcxx . . $ StringList# thee); |
| 54 | /* |
| 55 | Check whether my items are all in thy items. |
| 56 | |
| 57 | Postconditions: |
| 58 | if (index.size == my size) the returned index table has the following property: |
| 59 | if (index [i] > 0) |
| 60 | my label [i] = thy label [index [i]]; |
| 61 | else if (index [i] == 0) my label [i] not in thy labels. |
| 62 | */ |
| 63 | |
| 64 | #endif /* _Collection_extensions_h_ */ |