aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
AgeCommit message (Collapse)AuthorFilesLines
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
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