aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
AgeCommit message (Collapse)AuthorFilesLines
2023-06-28Add const where viable.Neil1-1/+1
2023-01-19Feature [feature-requests:#1444] Move GetFoldParent from Document to LineLevelsNeil1-3/+20
as better modularity. Add LineLevels::GetFoldLevel for better type safety. Simplify bounds checks in GetLevel and GetFoldLevel.
2022-07-29Apply rule-of-zero to delete standard methods where possible as handled byNeil1-19/+0
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-17Feature [feature-requests:#1441] Line state optimized to avoid excess ↵Zufu Liu1-8/+9
allocations by always allocating for every line.
2022-05-01Optimize case where there are no annotationsNeil1-0/+4
2021-10-12Feature [feature-requests:#1416] Use nullptr.Neil1-1/+1
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-8/+9
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-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-0/+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
2020-05-03Feature [feature-requests:1347]. Add InsertLines method to PerLine interface andNeil1-1/+36
all implementations. This will allow insertion of lines in batches in a future change set. Added tests for PerLine implementations.
2020-05-01Make lambdas noexcept.Zufu Liu1-2/+2
2020-04-10Move static functions into unnamed namespace and simplify line counting.Neil1-21/+15
2020-04-08Simplify PerLine, remove casts, use noexcept, const, & constexpr where possible.Neil1-28/+24
2020-04-08Feature [feature-requests:1344]. Add methods for iterating through the markerIain Clarke1-0/+25
handles and marker numbers on a line.
2020-03-26Fix spelling mistakes.Neil1-1/+1
2019-11-01Avoid calling vector::shrink_to_fit in destructors as it is not noexcept.Neil1-3/+0
The destructors of the members will ensure that everything is correct. Potential unhandled exceptions reported by Coverity.
2018-10-11Replace NULL and 0 with nullptr in clear cases of pure C++ code.Neil1-2/+2
2018-06-04Reduce scope of captures for lambdas.Neil1-2/+2
Use noexcept.
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-04-21Use noexcept in basic data structures where reasonable.Neil1-4/+4
Declare the standard member functions in more classes
2018-03-01Mark variables as const where simple.Neil1-4/+4
2018-03-01Use make_unique in preference to new.Neil1-13/+12
From Effective Modern C++ Item 21.
2018-01-26Extend SplitVector to allow more than 2 billion elements on 64-bit systems.Neil1-2/+2
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-2/+0
interfaces ILexer4 and IDocument.
2017-05-22More canonical version of previous change 6283.Neil1-5/+1
2017-05-22Fix a crash when a line containing a marker was deleted.Neil1-1/+5
2017-05-21Use unique_ptr and forward_list to regularize PerLine data structures.Neil1-124/+58
2017-04-22Include <memory> for std::unique_ptr.Neil1-0/+1
2017-04-15Avoid calling virtual functions in constructors and destructors.Neil1-2/+9
2017-04-15Use bool literals true and false instead of 1 and 0.Neil1-1/+1
2017-04-09Further use of range-for.Neil1-3/+3
2017-04-06Added const where possible.Neil1-5/+5
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-1/+2
where it may be needed in the future.
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-44/+44
and lines.
2016-01-10Use value initialization in preference to memset as simpler and more robust.Neil1-2/+1
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2015-07-04Also need to see std::exception in PerLine.Neil1-0/+1
2015-06-09When combining MarkerHandlerSets, prepend the other set instead of appendingJiří Techet1-2/+3
When undoing many lines with markers (e.g. "changebar" markers) LineMarkers::RemoveLine() is called for many lines and as a result combining markers from the next line for all the removed lines. This may cause the list contains many thousands of elements and traversing it becomes expensive. When lines are removed from the beginning to the end, it's better to prepend the markers from the next line to the current line instead of appending them because the current line "accumulates" all the markers from the following lines and walking the whole list takes more and more time.
2014-08-08Implement explicit tab stops per line.Neil1-0/+70
From Nick Gravgaard.
2014-02-21Bug [#1577]. Deleting a whole line deletes the annotations on that line insteadNeil1-3/+3
of the annotations on the next line.
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-1/+1
Parameter names added to method declarations.
2013-05-24Made methods const where they can be and are logically const as well.nyamatongwe1-3/+3
2013-05-05Since new throws an exception on failure, remove testing of result.nyamatongwe1-4/+0
2013-04-19Remove unused methods.nyamatongwe1-15/+0
2013-04-19Using std::fill instead of a loop is much faster. As much as 4x on a large ↵nyamatongwe1-0/+2
block.
2012-06-18Removed unnecessary code after change for bug #3535806.nyamatongwe1-6/+1
2012-06-18Remove marker only once for SCI_MARKERDELETE. Bug #3535806.nyamatongwe1-3/+5
2012-03-27Protect against modifying annotations with a negative line number or a linenyamatongwe1-24/+26
number after the document end.
2011-10-23Avoid crashing for SCI_MARKERNEXT starting at -1. Bug #3427270.nyamatongwe1-0/+2