aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-03-01Use make_unique in preference to new.Neil1-5/+5
From Effective Modern C++ Item 21.
2018-02-02Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-1/+2
2018-01-28Replace Sci::clamp with C++ standard std::clamp function.Neil1-1/+1
std::clamp is from C++17.
2018-01-28Use std::abs in preference to abs as std::abs is generic and abs casts to intNeil1-1/+2
which may drop information.
2017-12-13Use explicit typedefs instead of deprecated derivation from std::iterator.Greg Smith1-3/+21
This fixes a C4996 / STL4015 warning from Visual C++ 2017.5 that the std::iterator class template is deprecated in C++17.
2017-10-16Use const for interface CharacterIndexer and its implementation DocumentIndexer.Neil1-3/+3
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-12/+0
interfaces ILexer4 and IDocument.
2017-08-28New header ILoader.h defines ILoader interface as it does not belong in ↵Neil1-0/+1
ILexer.h.
2017-06-22Merge Ilexer and ILexerWithSubStyles into ILexer4 to avoid need for versionNeil1-5/+1
checking in 4.0. Use lvRelease4 ID.
2017-07-09Bug [#1955]. The data parameter to ILoader::AddData made const.Justin Dailey1-1/+1
2017-06-22Update IDocument for version 4. Drop IDocumentWithLineEnd interface to just haveNeil1-2/+2
IDocument but with all the methods from IDocumentWithLineEnd. This removes version checking (for now). Use dvRelease4 ID. Drop mask argument to StartStyling.
2017-06-22Cast between Sci_Position.h types used for lexers and Position.h types used inNeil1-72/+83
core to allow the Sci_Position.h types to widen to 64-bits.
2017-06-19The default encoding is now UTF-8.Neil1-1/+1
2017-06-12Removed unused functions and methods from Platform.h.Neil1-1/+1
Replaced Platform::Clamp with Sci::clamp but will later change this to std::clamp once on full C++17 compilers. Drop MouseButtonBounce workaround for very early GTK+/Linux.
2017-05-21Use unique_ptr and forward_list to regularize PerLine data structures.Neil1-0/+1
2017-05-10Use unique_ptr fpr Partitioning, RunStyles, SparseVector, PositionCache andNeil1-43/+58
Document.
2017-05-02More consistent use of size_t when converting Unicode formats.Neil1-1/+1
2017-04-29Use std::unique_ptr, std::vector, and move construction to simplify UndoHistoryNeil1-3/+3
and make it easier to modify. Remove out of date warning suppression.
2017-04-22Using unique_ptr to simplify ownership of images, case folder, and list box.Neil1-9/+3
2017-04-22Encapsulate the LexInterface of Document.Neil1-4/+8
2017-04-09Further use of range-for.Neil1-24/+24
2017-04-06Added const where possible.Neil1-47/+47
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-5/+5
where it may be needed in the future.
2017-03-31Prefer standard min/max over Platform's as adapts to changed types.Neil1-3/+3
2017-03-31Hide decorations details a little.Neil1-0/+4
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-215/+215
and lines.
2017-03-07Avoid potential problems with memcmp reading past end of object.Neil1-2/+6
2017-03-06Use several C++11 features as examples so problems with these features are seen.Vicente1-3/+3
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.
2017-03-04Use C++11 keyword "override" for methods that override a base class.Neil1-6/+6
2017-01-22Remove extraneous "void".Neil1-1/+1
2016-11-07Specify 'noexcept' to use Clang with GNU <regex>.Neil1-2/+10
Since 'noexcept' is not available with all compilers, restrict it to cases where needed.
2016-10-06Word selection, navigation, and manipulation is now performed on charactersNeil1-118/+344
instead of bytes leading to more natural behaviour for multi-byte encodings like UTF-8.
2016-08-20Make some methods const where reasonable.Neil1-1/+1
2016-04-28C++ 11 <regex> support built by default.Neil1-3/+3
2016-03-26Fix truncation warning in 64-bit build.Neil1-2/+2
2016-01-31Replace expressions to find level number of a fold level with function call.Neil1-18/+18
Simplifies code by removing any precedence issues and is shorter.
2015-12-07Prefer StyleIndexAt over StyleAt to avoid problems with out-of-bounds access forNeil1-2/+2
styles > 0x7f.
2015-11-20Remove line end whitespace.Neil1-5/+5
2015-11-11Implemented idle styling. This allows painting without first styling all visibleNeil1-0/+28
text then styling in the background using idle-time.
2015-09-29Mark local functions as static.Neil Hodgson1-1/+1
2015-09-04Bug [#1757]. Treat CRLF as two characters in SCI_COUNTCHARACTERS.Neil1-2/+0
2015-07-27Add Position.h as a place-holder and to allow #include "Position.h" in source.Neil1-0/+1
2015-07-20Use Sci_Position when required to implement interfaces.Neil1-16/+16
2015-06-11Added MultipleSelectAddNext, MultipleSelectAddEach, IsRangeWord, andNeil1-1/+1
TargetWholeDocument.
2015-06-04Move FindText flag decoding from caller to function to minimize code and chanceNeil1-2/+5
of mistakes.
2015-05-21Fix bug with TentativeUndo where the undo history was being damaged on OS X.Neil Hodgson1-0/+2
For example the sequence ['a', 'c', left, 'b', undo] would produce "c" instead of "ac".
2015-05-15Backed out changeset: 7caa35787c19Neil1-4/+5
Change made reverse iteration dangerous.
2015-05-13Ensure SCI_POSITIONRELATIVE returns a position clamped into the document rangeNeil1-5/+4
sensibly. From Mitchell Foral.
2015-02-19Add methods for converting between byte positions and UTF-16 code point ↵Neil Hodgson1-0/+36
positions. This is needed on Cocoa where the IME wants to be able to index into the document with UTF-16 counts to match Cocoa's own use of UTF-16.
2015-01-22Fix compilation failure of C++11 <regex> on Windows using gcc.Neil1-4/+5