aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
AgeCommit message (Collapse)AuthorFilesLines
2013-05-04Replacing raw pointers and allocations with std::string.nyamatongwe1-4/+3
2013-05-01Replacing raw pointers and allocations with std::vector and std::string.nyamatongwe1-0/+22
2013-05-01Replacing raw pointer and allocation with std::string.nyamatongwe1-47/+16
2013-04-28Use std::vector for list of watchers instead of manual management.nyamatongwe1-51/+28
2013-04-24Cosmetic: remove line-end whitespace.nyamatongwe1-6/+6
2013-04-19Remove unused methods.nyamatongwe1-36/+0
2013-04-17Disallow undo and redo when not collecting undo as it is likely that the ↵nyamatongwe1-2/+2
document is not in the state at the end of the undo history and performing undo will not be able to return to a previous state.
2013-04-09Slightly better behaviour for regular expression search in DBCS: ensure end ofnyamatongwe1-0/+2
match range is not in the middle of a character.
2013-01-19Support the three Unicode line ends NEL, LS, and PS in CellBuffer, Document,nyamatongwe1-1/+33
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/+4
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-1/+19
message interface. Expose IDocumentWithLineEnd interface on Document.
2012-09-04Cache the CaseFolder object between FindText calls so that finding many ↵nyamatongwe1-1/+23
instances of a common string in the document doesn't spend excessive time constructing case folder objects.
2012-07-02Remove functions provided by headers.nyamatongwe1-9/+0
2012-07-02Make IsLowerCase and IsUpperCase not depend on non-portable isascii, takenyamatongwe1-8/+0
an int argument to match similar calls, and move to header for wider use.
2012-06-17Use std::string instead of fixed size strings.nyamatongwe1-12/+9
Decrease direct access to the autocompletion list box from outside AutoComplete.
2012-06-16Redraw margin when changing margin styles.nyamatongwe1-0/+2
2012-06-04Properly position caret after undoing coalesced delete operations. Bug #3523326.Marko Njezic1-4/+27
2012-06-04Validate length of deletion: negative values caused crashes.nyamatongwe1-1/+1
2012-05-29add CharClassifier::GetCharsOfClassMook1-0/+4
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-26Use standardised and more stringent UTF8Classify for determining validity andnyamatongwe1-58/+61
width of UTF-8 characters. Optimize to make up for cost of UTF8Classify. Drop functions now provided by UniConversion. Use UTF8IsAscii function instead of test against literal.
2012-05-26For case-insensitive UTF-8 searching, use UTF8Classify for finding validnyamatongwe1-27/+23
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.
2012-05-26Optimize case-sensitive searching by hoisting the first character of searchnyamatongwe1-6/+9
string into a separate variable.
2012-05-26Optimize UTF-8 character length calculations by using an array.nyamatongwe1-17/+8
2012-04-14Make FindColumn() return correct position when column falls inside tab ↵Marko Njezic1-0/+2
width. Bug #3483713.
2012-04-14Remove dead code. Feature #3517596.nyamatongwe1-1/+0
From Marko Njezic.
2012-04-14Remove isindentchar as it duplicated IsSpaceOrTab. Made IsSpaceOrTab static. ↵nyamatongwe1-6/+2
Feature #3517596. From Marko Njezic.
2012-04-14Remove GoodTrailByte as it duplicated IsTrailByte. Simplified IsTrailByte. ↵nyamatongwe1-7/+3
Feature #3517596. From Marko Njezic.
2012-03-27Protect against modifying annotations with a negative line number or a linenyamatongwe1-7/+11
number after the document end.
2012-03-25Replace \0 by found text in regular expressions searchUnknown1-2/+2
2012-03-21Ensure segment discovery always makes progress even for invalid UTF-8.nyamatongwe1-1/+6
2012-03-03Fix crash caused by NULL pointer for SCI_MOVESELECTEDLINESDOWN. Bug #3496403.nyamatongwe1-1/+1
2011-11-26Removed unreachable code. Issue described in bug 3440534.nyamatongwe1-1/+1
2011-11-16Bug #3283519. CountCharacters added to count the number ofnyamatongwe1-0/+14
characters between two positions. From Andrey Moskalyov.
2011-10-26Implement ILoader interface so that clients can load documents fromnyamatongwe1-1/+17
background threads.
2011-09-23Optimized MarkerNext so it can be much faster when no marker ever setnyamatongwe1-0/+4
and a little faster when markers have been used.
2011-08-27Basing default eol mode on _WIN32 instead of __unix__ as OS X doesnyamatongwe1-3/+3
not define __unix__.
2011-07-12Fix case-insensitive search where folded form shorter. Bug #3362038.nyamatongwe1-4/+8
2011-07-12Fix Shift-JIS lead byte ranges to match Windows.nyamatongwe1-1/+2
2011-07-11Avoid shadowing of fields even for static methods to stop warnings.nyamatongwe1-4/+4
2011-07-02Folding related fixes. Initiated by bug #3323805.Marko Njezic1-91/+60
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-06-25Add casts to avoid warnings from SDK 64-bit compiler.nyamatongwe1-7/+9
2011-06-08Fix regex search on the last line of search rangeMarko Njezic1-2/+3
when search pattern ends with escaped $ modifier. Bug #3313746.
2011-05-13Break measurement of text into reasonable sized segments similarnyamatongwe1-0/+49
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-27Fixes for backwards regex search. Bug #3292659.nyamatongwe1-1/+8
From Marko Njezic.
2011-04-27Optimize fold marker highlight. Feature #3282649.nyamatongwe1-8/+11
From Jérôme LAFORGE.
2011-04-16Better highlight drawing where fold header has no subordinates. Bug #3279730.nyamatongwe1-4/+7
From Jérôme LAFORGE.
2011-04-07Add highlighting of current folding block. Feature #3147069.nyamatongwe1-0/+98
APIs MarkerEnableHighlight and MarkerSetBackSelected. From Jérôme Laforge.
2011-04-07Update copyright year.nyamatongwe1-1/+1
2011-02-28Avoid shadowed variables as reported by Xcode.nyamatongwe1-2/+2
2011-02-10Fix for backwards case-insensitive search in code page 936. Bug #3176271.nyamatongwe1-1/+5
Was not finding each occurance of a given string due to misaligned character access.