aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
AgeCommit message (Collapse)AuthorFilesLines
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
2014-12-22Replace function UnicodeFromBytes with UnicodeFromUTF8 as they are exactly theNeil1-15/+3
same. Add unit tests for UnicodeFromUTF8.
2014-10-03CountCharacters can be const so it is now.Neil1-1/+1
2014-10-02Allow using C++11 <regex> for searches as a provisional feature.Neil1-39/+462
2014-10-02Include <stdexcept> so that exceptions derived from std::runtime_error can beNeil1-0/+1
used.
2014-09-13Use const where possible in regular expression code.Neil1-6/+6
2014-08-19Bug [#1645]. Validate position of deletion.Neil1-0/+2
2014-07-18Added the tentative undo feature. This is useful for IMEs that want to displayNeil1-0/+59
and manipulate a character being composed, but may then commit or remove it leaving no history in undo of the intermediate forms.
2014-05-24Header include statements are now in a standardised order with that orderNeil1-2/+2
defined in scripts/HeaderOrder.txt.
2014-05-24Removing style byte indicators.Neil1-16/+6
2014-04-16Allow filtering of insertions.Neil1-53/+60
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-1/+1
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-3/+3
Parameter names added to method declarations.
2013-09-26Enhance stability by defining GetLineEndPosition for lines beyond end of ↵Neil1-1/+1
document to return document size.
2013-07-25Make Coverity happy. Ensure return value is seen to never be negative althoughNeil1-1/+1
it never really could be.
2013-07-22Added the character representation feature.Neil1-0/+9
2013-07-21Replace all instances of isascii with Scintilla-specific IsASCII.Neil1-6/+6
iasascii is not part of ISO C or C++ but is a BSD extension so caused problems when compiling in strict compliance mode.
2013-07-11Include case conversion data in Scintilla so that all platforms will performNeil1-41/+1
case conversion of Unicode text in accordance with Unicode.
2013-06-29Bug: [#1483]. Split GetRelativePosition into 2 calls one for moving between ↵Neil1-23/+31
character positions and the other for retrieving a character and width.
2013-06-27Bug: [#1483]. Adding StyleContext::GetRelativeCharacter for ↵nyamatongwe1-0/+65
character-oriented access. Implemented using new method IDocumentWithLineEnd::GetRelativePosition.
2013-05-24Made methods const where they can be and are logically const as well.nyamatongwe1-15/+15
2013-05-05Removed nethods that are no longer used and are less safe than alternatives.nyamatongwe1-29/+0