aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testSparseVector.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-01-30Avoid warnings in unit tests with const, nullptr, [[nodiscard]], initialisation,Neil1-5/+9
and unnamed namespace.
2024-01-02Fix warnings in test case code mostly by adding const.Neil1-2/+4
2022-07-29Apply rule-of-zero to delete standard methods where possible as handled byNeil1-0/+45
contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations.
2022-07-20Implement PositionNext to iterate. Simpler than IndexAfter for client code whichNeil1-0/+14
is not interested in SparseVector indices.
2022-07-20Add DeleteAll method as quick way to clear everything.Neil1-0/+3
Improves similarity to RunStyles.
2022-07-20Check IndexAfter at end.Neil1-0/+1
2022-07-20Fix setting end element empty.Neil1-0/+4
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-1/+1
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-09Add @file <filename> comments to follow convention.Neil1-1/+3
Fix incorrect filename comments. Normalize Qt code to use #endif /* X */ insetad of #endif // X.
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-2/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2019-12-02Add SparseVector::DeleteRange for efficiently removing ranges.Neil1-0/+106
2019-12-02Add SparseVector::IndexAfter for efficiently finding elements in a range.Neil1-0/+17
2019-12-01Allow setting value at end of a SparseVector.Neil1-20/+45
Change representation of SparseVector in tests so last value can be seen.
2019-12-01Fix a bug with deleting the first element in SparseVector that left an extraNeil1-0/+16
empty partition. Add extra checking to Partitioning and turn on checking for UnitTester.
2018-05-13Include <string_view> in tests in case needed.Neil1-0/+1
2018-04-20Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil1-0/+16
2018-03-21Include header needed for ptrdiff_t.Mitchell Foral1-0/+1
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-0/+2
interfaces ILexer4 and IDocument.
2017-05-21Make SparseVector work with move-only types.Neil1-20/+55
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-05-21Make SplitVector work with move-only types like unique_ptr.Neil1-4/+5
Provide InsertEmpty and both const and non-const reference returning operator[]. Add and fix comments.
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-2/+1
where it may be needed in the future.
2017-03-16Fix use-after-free in fold tags when top line folded then new top line inserted.Neil1-0/+12
In SparseVector, string inserted at start then NULL inserted at start.
2016-10-18Add SparseVector template as a new data structure for storing per-line dataNeil1-0/+185
which is 0 or NULL for most lines.