aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
AgeCommit message (Collapse)AuthorFilesLines
2018-10-15Backport: Extract duration measurement damping and clamping into ↵Neil1-1/+21
ActionDuration class so that it can be reused. Backport of changeset 7113:9b7421470bf8.
2018-07-10Backport: Optional indexing of line starts in UTF-8 documents by UTF-32 code ↵Neil1-0/+5
points and UTF-16 code units added. Converted instances of C++17 std::string_view to C++11. Also used const_casts where appropriate to fix compile errors. Backport of changeset 7063:0d5edc93e280.
2018-06-10Backport: Using noexcept for simple functions.Neil1-29/+29
Backport of changeset 7029:c726541dbd11.
2018-05-25Backport: Draw invalid bytes in DBCS when detected as blobs in a similar way ↵mitchell1-0/+3
to UTF-8. Backport of changeset 6962:514fde42ccbf, but without std::string_view.
2018-05-14Backport: Replace 0 with nullptr.Neil1-4/+4
Backport of changeset 6945:044688817478.
2018-04-21Backport: Tighten definition of regular expression iterators so they are ↵Neil1-8/+11
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-04-19Backport: Casting changed in many places, due to change to 64-bit variables ↵Neil1-3/+4
for 64-bit builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened. Backport of changeset 6705:5c0a80740b8c.
2018-05-05Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than ↵mitchell1-0/+2
2 GigaBytes. This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
2018-05-05Backport: Make some changes recommended by clang-tidy.mitchell1-1/+1
Backport of changeset 6687:4cbf987c7590.
2018-04-13Backport: Use 'override' for methods that are overridden.Neil1-30/+32
Group some method declarations and definitions for AddRef/Release and PerLine. Backport of changeset 6684:bd4aae09fb4b.
2018-04-04Backport: Remove redundant forward declaration and move forward declarations ↵Neil1-10/+8
to top. Backport of changeset 6671:4b0f850270d8.
2018-05-05Backport: Split decorations into interface and implementation.mitchell1-1/+1
Backport of changeset 6658:693e737f3155.
2018-03-09Backport: Use Position/Line/int more accurately in preparation for large ↵Neil1-2/+2
documents. Backport of changeset 6480:f2650eaa75e6.
2018-02-27Backport: Use virtual to ensure LexState overrides LineEndTypesSupported method.Neil1-1/+1
Backport of changeset 6462:934f6f6451c2.
2018-02-02Backport: Implement SC_DOCUMENTOPTION_STYLES_NONE.Neil1-1/+1
Backport of changeset 6448:431b814a54a6.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-4/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
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-3/+3
types used in core to allow the Sci_Position.h types to widen to 64-bits. Backport of changeset 6324:95346e626cf8.
2017-05-10Use unique_ptr fpr Partitioning, RunStyles, SparseVector, PositionCache andNeil1-4/+13
Document.
2017-04-29Use std::unique_ptr, std::vector, and move construction to simplify UndoHistoryNeil1-1/+1
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-1/+1
2017-04-22Encapsulate the LexInterface of Document.Neil1-2/+3
2017-04-21More consistent deletion of standard methods.Neil1-0/+3
2017-04-07Use same parameter names in declarations and definitions.Neil1-2/+2
2017-03-31Hide decorations details a little.Neil1-3/+1
2017-03-31Delete declaration of unimplemented method.Neil1-1/+0
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-119/+112
and lines.
2017-03-06Use several C++11 features as examples so problems with these features are seen.Vicente1-1/+1
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.
2017-01-22Remove extraneous "void".Neil1-1/+1
2016-10-06Word selection, navigation, and manipulation is now performed on charactersNeil1-14/+22
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-01-31Bug [#1799]. Folds unfolded when two fold regions are merged by either deletingMarkus Nißl1-0/+4
an intervening line or changing its fold level by adding characters. Add LevelNumber function to simplify expressions implmenting folding.
2015-12-31Treat Unicode line ends like common line ends when maintaining fold state.Neil1-0/+1
2015-12-04Fix some problems with out-of-bounds access for protected text.Neil1-0/+1
2015-11-20Remove line end whitespace.Neil1-2/+2
2015-11-11Implemented idle styling. This allows painting without first styling all visibleNeil1-0/+2
text then styling in the background using idle-time.
2015-07-20Use Sci_Position when required to implement interfaces.Neil1-19/+19
2015-06-11Added MultipleSelectAddNext, MultipleSelectAddEach, IsRangeWord, andNeil1-4/+4
TargetWholeDocument.
2015-06-04Move FindText flag decoding from caller to function to minimize code and chanceNeil1-2/+1
of mistakes.
2015-02-19Add methods for converting between byte positions and UTF-16 code point ↵Neil Hodgson1-0/+2
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.
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-1/+16
2014-07-24Mark const methods const.Neil1-1/+1
2014-07-23Avoid shadowed names mostly in method prototypes. Turn off shadowNeil1-1/+1
warnings for lexers since they may be maintained by others.
2014-07-18Added the tentative undo feature. This is useful for IMEs that want to displayNeil1-0/+6
and manipulate a character being composed, but may then commit or remove it leaving no history in undo of the intermediate forms.
2014-06-23Use Range type for hotspot to simplify manipulation.Neil1-0/+4
2014-05-24Removing style byte indicators.Neil1-5/+0
2014-04-22Hoisting some calculations into classes: ContractionState::DisplayLastFromDocNeil Hodgson1-0/+8
Range::First and Range::Last. Changing Editor::RectangleFromRange arguments to a Range. Simplifying code and specifying some local variables as const.
2014-04-16Allow filtering of insertions.Neil1-5/+7
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-2/+2