aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-05-05Backport: Feature [feature-requests:#1212]. Move Unicode conversions into ↵mitchell1-1/+0
UniConversion. Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion. Backport of changeset 6645:463fa6965d9a.
2018-05-05Backport: Feature [feature-requests:#1211]. Use pre-computed table for ↵mitchell1-2/+0
UTF8BytesOfLead. Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests. Backport of changeset 6643:ebbb4e5aaf93.
2018-03-09Backport: Use Position/Line/int more accurately in preparation for large ↵Neil1-6/+6
documents. Backport of changeset 6480:f2650eaa75e6.
2018-03-01Backport: Mark variables as const where simple.Neil1-49/+49
Backport of changeset 6470:d78a4b522662.
2018-02-02Backport: Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-1/+2
Backport of changeset 6448:431b814a54a6.
2018-01-28Backport: Use std::abs in preference to abs as std::abs is generic and abs ↵Neil1-1/+2
casts to int which may drop information. Backport of changeset 6434:ed27432729c3.
2017-12-13Backport: Use explicit typedefs instead of deprecated derivation from ↵Greg Smith1-3/+21
std::iterator. This fixes a C4996 / STL4015 warning from Visual C++ 2017.5 that the std::iterator class template is deprecated in C++17. Backport of changeset 6421:fd2f856b8d58.
2017-10-16Backport: Use const for interface CharacterIndexer and its implementation ↵Neil1-3/+3
DocumentIndexer. Backport of changeset 6401:fccfa635ff0c.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-12/+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-07-09Backport: Bug [#1955]. The data parameter to ILoader::AddData made const.Justin Dailey1-1/+1
Backport of changeset 6340:52f12c3eebcd.
2017-06-22Backport: Cast between Sci_Position.h types used for lexers and Position.h ↵Neil1-72/+83
types used in core to allow the Sci_Position.h types to widen to 64-bits. Backport of changeset 6324:95346e626cf8.
2017-06-19Backport: The default encoding is now UTF-8.Neil1-1/+1
Backport of changeset 6320:8d56eaef4f0a.
2017-06-12Backport: Removed unused functions and methods from Platform.h.Neil1-1/+1
Replaced Platform::Clamp with Sci::clamp. Drop MouseButtonBounce workaround for very early GTK+/Linux. Backported from changeset 6307:7030530a9a0f.
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