aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
AgeCommit message (Collapse)AuthorFilesLines
2021-07-12Feature [feature-requests:#1381] Optimize case sensitive search.Zufu Liu1-4/+13
2021-07-12Feature [feature-requests:#1381] Optimize case insensitive search for ASCII ↵Zufu Liu1-25/+48
text.
2021-07-13Restrict UTF8IsAscii to char and unsigned char to avoid failures when (signed)Neil1-1/+1
char passed.
2021-07-05Feature [feature-requests:#1408] Remove IsDBCSLeadByteInvalid as only caller ↵Zufu Liu1-37/+0
removed.
2021-07-03Feature [feature-requests:#1408] Simplify code, remove IsDBCSTrailByteInvalid.Zufu Liu1-63/+13
Drop temporary test for IsDBCSTrailByteNoExcept.
2021-07-03Feature [feature-requests:#1408] Use positive IsDBCSTrailByteNoExcept functionZufu Liu1-2/+33
instead of negated IsDBCSTrailByteInvalid.
2021-07-02Feature [feature-requests:#1408] Treat valid DBCS lead byte followed by invalidZufu Liu1-6/+13
trail byte as single byte.
2021-06-05Avoid extra processing as value_or doesn't evaluate lazily.Zufu Liu1-2/+2
2021-06-04Bug [#2260]. Fix bug with SCI_GETLASTCHILD when lParam is -1.Zufu Liu1-3/+2
Fixed cast on SCI_FOLDCHILDREN to use correct type.
2021-05-30Fix GetFontQuality. Simplify code that calls FlagSet.Neil1-1/+1
2021-05-28Better exception handling for noexcept methods. More accurate noexcept marking.Neil1-6/+12
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-151/+158
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-20Prefer Sci::invalidPosition to INVALID_POSITION as Scintilla.h will eventuallyNeil1-4/+4
not be visible to most code.
2021-05-20Add LevelIsHeader and LevelIsWhitespace as fold levels will become enum classNeil1-11/+11
later so not work well with '&'.
2021-05-08Feature [feature-requests:1373]. Make idle actions smoother by measuringNeil1-4/+3
per-byte and allowing just one line to be processed in a time slice. Very long lines will not distort estimation or block interaction as much.
2021-05-08Feature [feature-requests:1373]. Add methods for refining idle task durations.Zufu Liu1-0/+18
2021-04-27Rename CharacterSet and CharacterCategory modules in Scintilla to CharacterTypeNeil1-2/+2
and CharacterCategoryMap to avoid clashes with Lexilla when building an executable that includes both.
2021-04-05Extract CharClassify::cc as CharacterClass and change to enum class.Neil1-25/+25
2021-04-05Change actionType to an enum class.Neil1-15/+15
2021-03-18Use unique_ptr for CaseFolderForEncoding to show transfer of ownership.Neil1-2/+2
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-2/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2020-08-21Bounds checks for setting annotation style.Mitchell Foral1-8/+12
2020-07-16Make EncodingFamily an enum class for more type safety.Neil1-3/+3
2020-07-16Add some const, constexpr.Neil1-1/+1
2020-07-15Feature [feature-requests:1368]. Add BraceMatchNext API.Zufu Liu1-2/+2
2020-06-17Simplify calls when known to be leaving a save point.Neil1-2/+2
2020-06-12Bug [#2141]. Implement end of line annotations.Prakash Sahni1-0/+35
2020-05-03Feature [feature-requests:1347]. Add InsertLines method to PerLine interface andNeil1-0/+7
all implementations. This will allow insertion of lines in batches in a future change set. Added tests for PerLine implementations.
2020-04-08Simplify PerLine, remove casts, use noexcept, const, & constexpr where possible.Neil1-8/+8
2020-04-08Feature [feature-requests:1344]. Add methods for iterating through the markerIain Clarke1-0/+8
handles and marker numbers on a line.
2020-03-31Pass argument as unique_ptr to show transfer of ownership. Add const and ↵Neil1-3/+3
noexcept.
2020-03-26Fix spelling mistakes.Neil1-2/+2
2020-03-23Replace const with constexpr where possible.Neil1-4/+4
2020-03-23perLineData is polymorphic so replace static_cast with dynamic_cast for betterNeil1-5/+5
type safety and adherence to C++ Core Guidelines C.146.
2020-03-23Drop possibility of Sci_Position, Sci::Line, Sci::Position not being ptrdiff_t.Neil1-8/+8
This reduces casting.
2020-01-10Bug [#2132]. Only check for LS/PS/NEL when Unicode line ends turned on.Zufu Liu1-1/+1
2019-07-01Use noexcept on Document where reasonable with no effect on external interface.Neil1-48/+48
Adds LengthNoExcept method that copies Length but only for internal use.
2019-06-28Bug [#2116]. Fix deletion of isolated invalid bytes.Zufu Liu1-11/+26
2019-04-26Feature [feature-requests:#1238]. Simplify camel case forcing by checking onlyNeil1-8/+0
for upper and lower case characters instead of current word characters. This changes behaviour for words like "_word" -> "_Word" instead of remaining "_word" but that doesn't matter for this feature's intended use which is to allow display of ASCII-only keywords in the user's preferred casing (else/ELSE/Else) for languages with case-insensitive keywords.
2019-03-29Feature [feature-requests:#1259]. Add SCI_SETCHARACTERCATEGORYOPTIMIZATION APINeil1-1/+9
to optimize speed of character category features.
2019-03-20Implement WStringFromUTF8 to simplify code that creates wstring objects forNeil1-10/+2
regular expressions and calling the Win32 API.
2019-03-03Use constexpr where reasonable and move groups of static functions into unnamedNeil1-3/+3
namespace.
2019-03-03Use noexcept where reasonable.Neil1-1/+1
2019-01-06Bug [#2068]. Fix some clang-tidy warnings.Zufu Liu1-1/+1
2019-01-03Bug [#2073]. Stop GetCharacterAndWidth returning negative character value.Zufu Liu1-2/+2
This occurred for single-byte encodings and was never hit as GetCharacterAndWidth is only called for multi-byte encodings.
2018-10-17Bug [#2051]. Correct return value from SCI_MARKERADD for invalid lines.Neil1-1/+1
2018-10-16Make damping work in ActionDuration.Colomban Wendling1-1/+1
2018-10-15Extract duration measurement damping and clamping into ActionDuration class soNeil1-22/+25
that it can be reused.