aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-04-20Undo part of last change as Xcode Clang doesn't like assigning long to int ↵Neil Hodgson2-8/+8
without cast.
2018-04-20Use standard lround function and remove some casts.Neil1-5/+7
2018-04-20Feature [feature-requests:#1215]. Use standard functions in prference toNeil2-7/+8
RoundXYPosition, XYMinimum, and XYMaximum.
2018-04-20Feature [feature-requests:#1215]. const in AutoComplete.Neil2-10/+10
2018-04-20Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil3-5/+6
2018-04-20Avoid casts for DrawIndentGuide.Neil2-7/+7
2018-04-20Remove casts, drop default argument, use const.Neil2-8/+8
2018-04-19Templatize MakeUpperCase/MakeLowerCase so they work on char/int without casts.Neil1-4/+4
2018-04-19Use ColourDesired constructor explicitly to make more obvious.Neil3-6/+6
Constructor not marked explicit as may be used in external platform layers.
2018-04-19Casting changed in many places, due to change to 64-bit variables for 64-bitNeil9-505/+508
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.
2018-04-19Casts that avoid warnings if Position and Line are different sizes.Neil1-2/+2
2018-04-19Remove potential allocation in destructor which could have thrown.Neil1-1/+0
2018-04-19Remove unnecessary extra allocation.Neil1-2/+0
2018-04-19Remove casts by using harmonized types. Drop NUL termination that is not needed.Neil1-16/+13
2018-04-19SC_PRINT_SCREENCOLOURS doesn't force the background colour of line numbers ↵Nicholai Benalal1-2/+3
white.
2018-04-18Avoid an overflow warning seen when compiling for Qt.Neil Hodgson1-1/+2
2018-04-17Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.Neil12-23/+56
This option is provisional and experimental.
2018-04-17Templatize ContractionState so it can later be switched between 32-bits and ↵Neil1-69/+99
64-bits.
2018-04-17Templatize LineVector so it can later be switched between 32-bits and 64-bits.Neil1-8/+9
2018-03-28Templatize decorations to allow 32-bit or 64-bit positions.Neil3-59/+86
2018-04-16Determine if line start or end pattern before loop.Neil1-5/+7
2018-04-16Convert topLine from a screen line to a document line before using it to find aNeil1-1/+2
position.
2018-04-14Make some changes recommended by clang-tidy.Neil Hodgson12-19/+19
2018-04-13Use 'override' for methods that are overridden.Neil2-58/+60
Group some method declarations and definitions for AddRef/Release and PerLine.
2018-04-13Fix bug with regular expression searches failing to match at line start or end.Neil1-16/+4
This was a work-around for infinite loops when replacing empty matches and this is now the application's responsibility.
2018-03-03Split LineVector into interface and implementation classes to allow futureNeil2-87/+87
choice between 32-bit and 64-bit position implementations.
2018-04-11Remove workaround for problems with noexcept.Neil1-10/+2
2018-04-11Set the last X chosen when SCI_REPLACESEL called to ensure macros work when textNeil1-0/+1
insertion followed by line up or down.
2018-04-05Backed out changeset: 7402342dc7a3 Caching client rectangle on EditView.Neil4-34/+20
This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based.
2018-04-04Remove redundant forward declaration and move forward declarations to top.Neil1-10/+8
2018-04-04Cache client rectangle on EditView so it can be used easily inside EditView.Neil4-20/+34
2018-03-28Split decorations into interface and implementation.Neil7-90/+171
2018-03-27Return a FillResult struct from RunStyles::FillRange instead of modifyingNeil5-19/+30
arguments as that is clumsy when converting types.
2018-03-27Use an interface for ContractionState so that there can be differentNeil7-196/+248
implementations of that interface.
2018-03-25Removed comment about script that is not included.Neil1-1/+0
2018-03-25Feature [feature-requests:#1213]. Clarify UTF8Classify.Zufu Liu1-45/+42
Use UTF8BytesOfLead to determine expected length early in function to quickly detect argument not long enough, invalid single bytes and invalid first trail then branching on length for more detailed checks.
2018-03-24Removed unreachable branches in UTF8Classify.Neil1-8/+0
2018-03-24Removed unwanted include.Neil1-1/+0
2018-03-24Feature [feature-requests:#1212]. Move Unicode conversions into UniConversion.Zufu Liu5-52/+36
Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion.
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu3-90/+102
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2018-03-16Remove line-end white space.Neil5-6/+6
2018-03-15Use forward class definitions of XPM and RGBAImage so only code that uses themNeil8-41/+46
needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage.
2018-03-14Bug [#2001]. Make masking and comparison code clearer.Neil1-16/+25
2018-03-09Use Position/Line/int more accurately in preparation for large documents.Neil17-131/+136
2018-03-06Feature [feature-requests:#1210]. Maxima lexer added.Gunter Königsmann1-0/+1
2018-03-01Mark variables as const where simple.Neil17-281/+281
2018-03-01Use C++ cast in preference to C cast.Neil1-1/+1
2018-03-01Mark pointer argument as const as not written to.Neil2-7/+7
2018-03-01Avoid warning with explicit destructor.Neil1-0/+1
2018-03-01Use make_unique in preference to new.Neil12-46/+46
From Effective Modern C++ Item 21.