aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-05-30Backport: Add header needed for floor.Neil Hodgson1-0/+1
Backport of changeset 7007:6055a62c94c3.
2018-05-24Backport: Fix warnings. Add const, constexpr, and noexcept. Initialize. ↵Neil1-7/+6
Standard methods. Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases. Backport of changeset 6974:e99161ef7bdd.
2018-05-25Backport: Draw invalid bytes in DBCS when detected as blobs in a similar way ↵mitchell1-1/+2
to UTF-8. Backport of changeset 6962:514fde42ccbf, but without std::string_view.
2018-05-13Backport: When line end characters are displayed, indicators are drawn ↵Neil1-5/+5
under/over them. Backport of changeset 6934:c0ca57c954c8.
2018-05-03Backport: Use Range and Position in more cases to avoid casts.Neil1-15/+18
Backport of changeset 6790:cb56d38e7800.
2018-05-03Backport: Ensure all 4 byte characters will work in MapRepresentation by ↵Neil1-9/+16
using unsigned int. Use variable assignments to avoid casts. Backport of changeset 6789:35c415d8e7d4.
2018-04-21Backport: Tighten definition of regular expression iterators so they are ↵Neil1-1/+1
noexcept and define all the standard member functions. This cascades to all methods called by the iterators, affecting Document, CellBuffer, Partitioning, SplitVector and UTF-8 and DBCS functions. Other trivial functions declared noexcept. Backport of changeset 6724:f2dfdc0dddd3.
2018-05-05Backport: Split decorations into interface and implementation.mitchell1-3/+3
Backport of changeset 6658:693e737f3155.
2018-03-15Backport: Use forward class definitions of XPM and RGBAImage so only code ↵Neil1-1/+0
that uses them needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage. Backport of changeset 6624:32adac0930bb.
2018-03-09Backport: Use Position/Line/int more accurately in preparation for large ↵Neil1-14/+15
documents. Backport of changeset 6480:f2650eaa75e6.
2018-03-01Backport: Mark variables as const where simple.Neil1-10/+10
Backport of changeset 6470:d78a4b522662.
2018-01-28Backport: Use std::end when filling arrays as reduces chance of mistake.Neil1-2/+3
Backport of changeset 6436:a366ce1a811e.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-2/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-08-28Backport: New header ILoader.h defines ILoader interface as it does not ↵Neil1-0/+1
belong in ILexer.h. Backport of changeset 6383:9c8257ff60b7.
2017-05-21Make SparseVector work with move-only types.Neil1-0/+1
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-10Simplify DecorationList and its clients by using a vector instead of anNeil1-1/+1
intrusive linked list. Restrict clients to a read-only view.
2017-05-10Use unique_ptr fpr Partitioning, RunStyles, SparseVector, PositionCache andNeil1-36/+22
Document.
2017-04-21More consistent deletion of standard methods.Neil1-3/+13
2017-04-19Drop reinterpret_cast when can implicit cast to void* or const void*.Neil1-2/+2
2017-04-15Use bool literals true and false instead of 1 and 0.Neil1-1/+1
2017-04-09Further use of range-for.Neil1-10/+10
2017-04-07Remove unnecessary casts.Neil1-2/+2
2017-04-06Added const where possible.Neil1-6/+6
2017-04-01More encapsulation for Decoration and DecorationList.Neil1-2/+2
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-4/+3
where it may be needed in the future.
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-8/+8
and lines.
2017-03-08Fix warnings from Visual Studio 2017.Neil1-2/+2
2017-03-06Use several C++11 features as examples so problems with these features are seen.Vicente1-0/+1
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.
2016-11-05Add options to choose between the locations of a position when thereNeil Hodgson1-1/+7
are multiple locations for one position. The main current use is to find the location at the end of a line or display line when the commonly used location is at the start of the next line.
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2015-02-15Add SC_INDICFLAG_VALUEFORE and INDIC_TEXTFORE to allow a wide range of indicatorNeil1-2/+12
colours and to change the colour of text.
2014-10-02Include <stdexcept> so that exceptions derived from std::runtime_error can beNeil1-0/+1
used.
2014-07-08Split parts of Editor class off into EditModel, MarginView, and EditView ↵Neil1-13/+12
classes.
2014-06-23Use Range type for hotspot to simplify manipulation.Neil1-2/+1
2014-06-22Extra casting to prevent warnings from cppcheck.Neil1-2/+2
2014-06-22Stop storing a pointer to the selection on LineLayout objects where it may haveNeil1-4/+3
a lifetime that is too long. Instead provide it as an argument to BreakFinder where it is only needed during intialisation.
2014-06-22Further use of const in layout and drawing.Neil1-7/+7
2014-06-22Drawing and measuring should not change ViewStyle which is set by the containerNeil1-3/+5
so mark ViewStyle parameters as const. Provide a FontAlias copy constructor and use it to work around non-const Font arguments to Surface when sourced from const ViewStyle.
2014-05-24Header include statements are now in a standardised order with that orderNeil1-1/+1
defined in scripts/HeaderOrder.txt.
2014-05-24Removing style byte indicators.Neil1-5/+0
2014-05-03Turn on MSVC 'possible loss of data' warnings and add explicit casts.Neil1-1/+1
2014-05-03Add needed casts and remove a cast that is not needed.Neil1-3/+3
2014-05-03Using unsigned int for cache index to avoid casts and potential for failure.Neil1-4/+5
2014-05-02Use unsigned int for calculating hash and secondary probe as overflow of signedNeil1-2/+2
int is undefined in C++.
2014-03-25Bug [#1585]. Cursor down fails on wrapped lines.Neil1-1/+2
2014-03-11Remove function no longer called.Neil1-5/+0
2014-02-26Refactor methods for converting screen points to and from document index, ↵Neil1-0/+44
moving code from Editor to LineLayout.
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-1/+1
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-1/+1
Parameter names added to method declarations.
2013-08-07Ensure no reads outside allocation.Unknown1-1/+1