summaryrefslogtreecommitdiffstats
path: root/WDL/assocarray.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* assocarray: replace freestr() with wdl_freefunc<const char *>, deprecate freecharptr -- from 01ffd816Cockos Inc2026-05-171-6/+4
* assocarray: update commentJustin Frankel2025-05-091-1/+1
* assocarray: constify key comparison function -- from 11839b9aCockos Inc2024-09-021-11/+11
* remove obsoleted comparison function -- from f1967bdcCockos Inc2024-09-021-2/+0
* assocarray: update WDL_StringKeyedArray to support copyKeys=false, expose WDL_assocarray_cmpstr/WDL_assocarray_cmpistr as templates for external use -- from d9d82782Cockos Inc2024-09-021-10/+8
* assocarray: add WDL_[Mem]KeyedArray[Impl], WDL_assocarray_cmp and WDL_assocarray_cmpmem templates -- from 50a1d9dbCockos Inc2024-09-021-15/+45
* ptrlist/heapbuf/assocarray: add non-const begin/end functions -- from 904fd0e7Cockos Inc2024-08-081-0/+4
* add begin()/end() to WDL_TypedBuf, WDL_PtrList, WDL_AssocArray, allows C++11 for ( : ) syntax -- from 8190fcf5Cockos Inc2024-08-071-0/+4
* HeapBuf/TypedBuf/PtrList/AssocArray: add Prealloc() -- from f20dd0ca and 8d921ad8Cockos Inc2024-07-151-0/+2
* assocarray: validate underlying heapbuf resize succeeded -- from 20d07908Cockos Inc2024-05-311-9/+15
* WDL_LogicalSortStringKeyedArray uses new utf8 comparisons -- from c0ffc15aCockos Inc2023-12-311-3/+10
* WDL_LogicalSortStringKeyedArray will avoid removing duplicate keys which logically sort as equal but differ -- from fa5927c2Cockos Inc2023-12-191-2/+2
* assocarray: add WDL_Set and WDL_PtrSet -- from de6fd2d2Cockos Inc2023-09-281-0/+40
* assocarray: add WDL_PointerKeyedArray<ptrtype*> template -- from c8cf3feaCockos Inc2023-09-281-0/+7
* WDL_AssocArray: style/NULL cleanups, move PtrKeyedArray::cmpptr to AssocArray::keycmp_ptr for easier templated reuse -- from 8c6cdf92Cockos Inc2023-09-281-32/+29
* WDL_AssocArrayImpl: remove unnecessary test -- from d6ea00c2Cockos Inc2022-09-051-1/+1
* prevent incorrect sort due to integer wrapping in WDL_AssocArray -- from 7b13bdb7Cockos Inc2022-08-091-3/+3
* WDL_LogicalSortStringKeyedArray: simplify call to WDL_strcmp_logical -- from d492df8eCockos Inc2022-05-181-8/+2
* assocarray: use WDL_strcmp_logical for logical comparisons rather than having a second identical implementation -- from 8c944597Cockos Inc2022-04-081-38/+2
* assocarray: allow callers to twiddle m_data if they dare -- from d3e025f8Cockos Inc2022-01-011-1/+3
* wdlcstring/assocarray: make logical sort code more readable -- from 9d9c4fbe and 0a74075eCockos Inc2021-08-231-14/+13
* wdlcstring/assocarray: fix logical string comparison for cases where numbers match but have different suffixes -- from 6cadd495Cockos Inc2021-08-231-44/+23
* WDL_AssocArray(): CopyContentsAsReference() copies comparison function, handle malloc() failure gracefully in ResortStable() -- from e182aabfCockos Inc2020-05-211-3/+13
* AssocArray::RemoveDuplicateKeys() operates in O(N) timeCockos Inc2020-05-111-8/+16
* WDL_LogicalSortStringKeyedArray() exposes comparison functions -- from 7cb02457Cockos Inc2020-05-041-2/+2
* WDL_AssocArray: allow Resort() to receive new key sort function. Does not remove duplicates in this mode -- from ad365b4bCockos Inc2020-05-041-2/+4
* WDL_AssocArray: add StableResort() -- from a90772e3, 3df92bacCockos Inc2019-07-061-29/+47
* assocarray: add WDL_IntKeyedArray2 for use with structs -- from bbc8f2c1Cockos Inc2018-10-151-0/+11
* wdlcstring/assocarray: improved and optimized logical sorting -- from cae63385, 0e3c7d2d, 675b7d86, d94eb483, f142c145, f142c145Cockos Inc2015-11-101-21/+50
* Added WDL/.gitattributes, normalized line endingsJustin Frankel2015-01-101-424/+424
* added WDL_AssocArray::ChangeKeyByIndex() -- from b68010eaCockos Inc2015-01-091-5/+15
* WDL_AssocArray::Insert now returns the index of the inserted item, rather than an optional pointer to the inserted key can be cherry-picked to master) -- from ea4838b6Cockos Inc2015-01-091-4/+3
* cstring: added WDL_strcmp_logical() -- from c5a6b09cCockos Inc2014-07-021-0/+1
* assocarray: added WDL_StringKeyedArray2, for hosting structsJustin Frankel RMBP2014-02-031-4/+15
* added WDL_LogicalSortStringKeyedArray -- from 22074341Cockos Inc2014-01-131-0/+62
* heapbuf/ptrlist/assocarray: cast sizeof() to unsigned int, until we make heapbuf support >4gb allocations -- from edd109f0Cockos Inc2014-01-131-3/+3
* AssocArray: added CopyContents() for manual copying of AssocArrays, and made copy constructors/operator= private to prevent accidental use -- from 0c4f500bCockos Inc2013-12-161-0/+24
* AssocArray: allow overrides access to assocarray's internals -- from d75598bcCockos Inc2013-07-011-1/+1
* WDL: various template/heapbuf/etc functions get some more constifications -- from 43c00d5aCockos Inc2013-04-161-10/+10
* Some fixes for Xcode4/LLVM -- from af491727Cockos Inc2012-05-041-3/+3
* explicit keyword on some class constructors to avoid implicit casts -- from d8d6796a + 540b10332Cockos Inc2012-02-251-5/+5
* WDL_AssocArray Resort() filters out duplicate keys, which can be added via AddUnsorted() -- from de51eaf2Cockos Inc2011-06-131-2/+17
* assocarray compile fix for OSX -- from f336621aCockos Inc2011-06-131-6/+13
* WDL_AssocArrayImpl can have structs for keys -- from 0a402a6dCockos Inc2011-06-131-13/+13
* WDL_AssocArray::SetGranul and WDL_TypedBuf::SetGranul, made WDL_TypedBuf::Add safer -- from 55a31d4bCockos Inc2011-06-131-1/+6
* adding WDL_PtrKeyedArray -- from 1c8f394Cockos Inc2011-02-051-0/+14
* split WDL_AssocArray into two classes, an impl class that can handle structs as values but does not support Get/Enumerate of values directly (just pointers), and the existing class that does not handle structs as values but does support Get/Enumerate of values directly -- from cd161f9Cockos Inc2011-02-051-20/+33
* added WDL_AssocArray::DeleteAll(resizedown), WDL_TypedBuf::Add -- from 47c0ad1Cockos Inc2010-10-201-2/+2
* added WDL_AssocArray::GetIdx(key) -- from 19cb363Cockos Inc2010-10-201-0/+8
* added WDL_AssocArray::Exists(key) -- from 81925f1Cockos Inc2010-10-201-0/+7