aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
AgeCommit message (Collapse)AuthorFilesLines
2013-07-11Include case conversion data in Scintilla so that all platforms will performNeil1-18/+0
case conversion of Unicode text in accordance with Unicode.
2013-06-29Bug: [#1483]. Split GetRelativePosition into 2 calls one for moving between ↵Neil1-1/+2
character positions and the other for retrieving a character and width.
2013-06-27Bug: [#1483]. Adding StyleContext::GetRelativeCharacter for ↵nyamatongwe1-0/+1
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-32/+32
2013-05-05Removed nethods that are no longer used and are less safe than alternatives.nyamatongwe1-1/+0
2013-05-01Replacing raw pointers and allocations with std::vector and std::string.nyamatongwe1-0/+1
2013-04-28Use std::vector for list of watchers instead of manual management.nyamatongwe1-7/+7
2013-04-28Removed unused members.nyamatongwe1-3/+0
2013-04-19Remove unused methods.nyamatongwe1-6/+0
2013-01-19Support the three Unicode line ends NEL, LS, and PS in CellBuffer, Document,nyamatongwe1-0/+4
Editor and the message interface. Will only be turned on for lexers that support Unicode line ends.
2013-01-19To allow for new line end sequences implement IsPositionInLineEnd on thenyamatongwe1-0/+1
document and use it instead of checks for particular byte values. Use equivalent checks against numCharsBeforeEOL in other contexts. When line ends visible, display byte value blobs for non-ASCII line ends.
2013-01-19Implement APIs for Unicode line ends and substyles and expose tonyamatongwe1-3/+5
message interface. Expose IDocumentWithLineEnd interface on Document.
2012-09-04Cache the CaseFolder object between FindText calls so that finding many ↵nyamatongwe1-1/+5
instances of a common string in the document doesn't spend excessive time constructing case folder objects.
2012-05-29add CharClassifier::GetCharsOfClassMook1-0/+1
add SCI_GETWORDCHARS(<unused>, stringresult chars) command to get word chars add SCI_GETWHITESPACECHARS(<unused>, stringresult chars) to get whitespace chars add SCI_GETPUNCTUATIONCHARS(<unused>, stringresult chars) to get punctutation also add tests for {Set,Get}{Word,Whitespce,Punctuation}Chars, CharClassifier
2012-05-26Add GetRangePointer and GetGapPosition methods.nyamatongwe1-0/+2
2012-05-26For case-insensitive UTF-8 searching, use UTF8Classify for finding validnyamatongwe1-1/+0
character width so compatible with other similar code. Optimize treatment of single byte ASCII characters and also optimize loop conditions. These mostly make up for the performance decrease from calling UTF8Classify. Add support definitions UTF8MaxBytes and UTF8IsAscii in UniConversion. Remove ExtractChar as no longer needed.
2011-11-16Bug #3283519. CountCharacters added to count the number ofnyamatongwe1-0/+1
characters between two positions. From Andrey Moskalyov.
2011-10-26Implement ILoader interface so that clients can load documents fromnyamatongwe1-2/+4
background threads.
2011-09-23Optimized MarkerNext so it can be much faster when no marker ever setnyamatongwe1-0/+1
and a little faster when markers have been used.
2011-07-11Avoid shadowing of fields even for static methods to stop warnings.nyamatongwe1-1/+1
2011-07-02Folding related fixes. Initiated by bug #3323805.Marko Njezic1-19/+18
Make fold highlighting follow closely the actual folding implementation. Introduce a concept of fold headers with a tail to accommodate certain fold highlighting situations. Optimize PaintSelMargin(), so it doesn't waste time with fold markers, unless really necessary. Make EnsureLineVisible() find right parent, when called on whitespace line. Fix wrong fold tail marker when needWhiteClosure is true.
2011-05-13Break measurement of text into reasonable sized segments similarnyamatongwe1-0/+1
to drawing. Drawing will now always be broken up at a character boundary even when there is a large number of alphabetic characters. Fixes bug #3165743.
2011-04-27Optimize fold marker highlight. Feature #3282649.nyamatongwe1-1/+1
From Jérôme LAFORGE.
2011-04-16Better highlight drawing where fold header has no subordinates. Bug #3279730.nyamatongwe1-6/+6
From Jérôme LAFORGE.
2011-04-07Add highlighting of current folding block. Feature #3147069.nyamatongwe1-0/+42
APIs MarkerEnableHighlight and MarkerSetBackSelected. From Jérôme Laforge.
2011-04-07Update copyright year.nyamatongwe1-1/+1
2011-01-10Fixing double-click inside word selecting non-word characters. Bug #3111174.nyamatongwe1-1/+1
A double-click on a visible character always selects that character and the word it is in. From Jordan Russell.
2010-09-25Optimization of line layout by minimizing calls in Editor::LayoutLine and ↵nyamatongwe1-0/+3
avoiding case force processing unless at least one style uses a case force option.
2010-09-16Making methods const when they should be.nyamatongwe1-2/+2
2010-08-19Adding GetLineIndentation to IDocument.nyamatongwe1-1/+1
2010-08-19Exposed BufferPointer through IDocument.nyamatongwe1-1/+1
2010-08-05Case insensitive search in DBCS and faster processing of DBCS.nyamatongwe1-0/+1
DBCS case folder implemented on Windows.
2010-08-04Added NextPosition as more efficient way to iterate through DBCS characters.nyamatongwe1-0/+1
2010-07-28Restore container lexing functionality which was accidentally removed by ↵nyamatongwe1-0/+3
lexer objects changes.
2010-07-13Files changed for new lexer design.nyamatongwe1-14/+47
2010-05-05Made some methods const.nyamatongwe1-4/+4
2010-04-30Made compatible with clang.nyamatongwe1-3/+3
2010-03-26Simplify code and use better variable names.nyamatongwe1-1/+2
2010-03-25New case insensitive searching implementation uses objects implementingnyamatongwe1-3/+21
the CaseFolder interface to fold both search text and document text so they can be compared with a simple strcmp. A simple table based folder CaseFolderTable is used for 8 bit encodings and maps input bytes to folded bytes. For multi-byte encodings except for UTF-8 a null (output same as input) CaseFolderTable is used. For UTF-8, more complex subclasses are used which call platform APIs to perform the folding. Folding is approximately to lower case although this differs between platforms.
2010-02-17Formatting whitespace.nyamatongwe1-8/+8
2009-07-10Duplicate works on discontiguous selections by duplicating each selection.nyamatongwe1-0/+21
UndoGroup class simplifies grouping actions together in the undo history.
2009-07-03Discontiguoues selection and virtual space initial commit.nyamatongwe1-0/+1
2009-06-24Some extra const constraints added while working on discontiguous selection.nyamatongwe1-3/+3
2009-06-10Clear out per-line data when all contents removed.nyamatongwe1-0/+1
2009-04-22Removed Document methods that returned parts of annotations in favour ofnyamatongwe1-14/+17
methods that return StyledText objects. Provided LineLength call on StyledText rather than iterator objects. Simplified code and made more things const.
2009-04-22Fixed bug where not styling last document line on screen when followed bynyamatongwe1-0/+13
annotation lines. StyledText class encapsulates related data when drawing annotations and margins.
2009-04-19Added UNDO_MAY_COALESCE flag to AddUndoAction.nyamatongwe1-1/+1
2009-04-12Annotations and text margins added.nyamatongwe1-8/+39
2009-04-04Added AddUndoAction call for adding application actions into undo stack.nyamatongwe1-2/+6
2008-06-29Simon Steele's modification to allow replacing the regularnyamatongwe1-4/+20
expression implementation.