aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-04-24Backport: Feature [feature-requests:#1215]. Make a parameter const.Neil2-2/+2
Backport of changeset 6733:f6be8941c4b8.
2018-04-22Backport: Remove casts between char and unsigned char where possible.Neil5-12/+11
Backport of changeset 6731:8e06234817c0.
2018-04-21Backport: Code improvements - noexcept and intialization.Neil2-5/+5
Backport of changeset 6728:08bed3a35b28.
2018-04-21Backport: Safety improvements for character code - drop reinterpret_cast, ↵Neil3-13/+12
ensure more variables are initialized, specify noexcept when safe. Backport of changeset 6727:8f4de063e95c.
2018-04-21Backport: Use noexcept in basic data structures where reasonable.Neil7-46/+55
Declare the standard member functions in more classes Backport of changeset 6725:2864bc1b748a.
2018-04-21Backport: Tighten definition of regular expression iterators so they are ↵Neil11-120/+150
noexcept and define all the standard member functions. This cascades to all methods called by the iterators, affecting Document, CellBuffer, Partitioning, SplitVector and UTF-8 and DBCS functions. Other trivial functions declared noexcept. Backport of changeset 6724:f2dfdc0dddd3.
2018-05-06Backport: More const and cast avoidance.mitchell3-13/+14
Backport of changeset 6722:9a20edc44615.
2018-04-20Backport: Mark pointer to constant parameter as const.Neil4-4/+4
Backport of changeset 6721:33bf16396488.
2018-04-20Backport: Use std::count to simplify code. Avoid NULL.Neil1-8/+2
Backport of changeset 6720:a53006dc13cd.
2018-04-20Backport: Make reference argument const as not altered.Neil2-2/+2
Backport of changeset 6719:c366b4a0ae98.
2018-04-20Backport: Undo part of last change as Xcode Clang doesn't like assigning ↵Neil Hodgson2-8/+8
long to int without cast. Backport of changeset 6717:2fec6b5183b7.
2018-04-20Backport: Use standard lround function and remove some casts.Neil1-5/+7
Backport of changeset 6715:6f2eebd823c8.
2018-05-06Backport: Feature [feature-requests:#1215]. Use standard functions in ↵mitchell2-7/+8
prference to RoundXYPosition, XYMinimum, and XYMaximum. Backport of changeset 6713:fadc4c551b6d.
2018-04-20Backport: Feature [feature-requests:#1215]. const in AutoComplete.Neil2-10/+10
Backport of changeset 6712:3a277aadcf2a.
2018-04-20Backport: Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil3-5/+6
Backport of changeset 6711:8d202ec5a734.
2018-04-20Backport: Avoid casts for DrawIndentGuide.Neil2-7/+7
Backport of changeset 6709:0e77bb893e18.
2018-04-20Backport: Remove casts, drop default argument, use const.Neil2-8/+8
Backport of changeset 6708:6705d3f828c5.
2018-04-19Backport: Templatize MakeUpperCase/MakeLowerCase so they work on char/int ↵Neil1-4/+4
without casts. Backport of changeset 6707:29e80e764b46.
2018-04-19Backport: Use ColourDesired constructor explicitly to make more obvious.Neil3-6/+6
Constructor not marked explicit as may be used in external platform layers. Backport of changeset 6706:73c8bc321f62.
2018-04-19Backport: Casting changed in many places, due to change to 64-bit variables ↵Neil9-503/+506
for 64-bit 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. Backport of changeset 6705:5c0a80740b8c.
2018-04-19Backport: Casts that avoid warnings if Position and Line are different sizes.Neil1-2/+2
Backport of changeset 6704:733be9341cf9.
2018-04-19Backport: Remove potential allocation in destructor which could have thrown.Neil1-1/+0
Backport of changeset 6703:4089e5fd5385.
2018-04-19Backport: Remove unnecessary extra allocation.Neil1-1/+0
Backport of changeset 6702:785f4abd19b6.
2018-04-19Backport: Remove casts by using harmonized types. Drop NUL termination that ↵Neil1-16/+13
is not needed. Backport of changeset 6701:6be1be362cfc.
2018-04-19Backport: SC_PRINT_SCREENCOLOURS doesn't force the background colour of line ↵Nicholai Benalal1-2/+3
numbers white. Backport of changeset 6700:daa126b86c17.
2018-04-18Backport: Avoid an overflow warning seen when compiling for Qt.Neil Hodgson1-1/+2
Backport of changeset 6699:eed960ed3828.
2018-05-05Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than ↵mitchell13-24/+61
2 GigaBytes. This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
2018-04-17Backport: Templatize ContractionState so it can later be switched between ↵Neil1-70/+100
32-bits and 64-bits. Backport of changeset 6695:86c008249ce5.
2018-04-17Backport: Templatize LineVector so it can later be switched between 32-bits ↵Neil1-8/+9
and 64-bits. Backport of changeset 6694:6df3a85efb80.
2018-03-28Backport: Templatize decorations to allow 32-bit or 64-bit positions.Neil3-58/+85
Backport of changeset 6693:7247d1c9c27f.
2018-04-16Backport: Determine if line start or end pattern before loop.Neil1-5/+7
Backport of changeset 6692:1868a36cb306.
2018-04-16Backport: Convert topLine from a screen line to a document line before using ↵Neil1-1/+2
it to find a position. Backport of changeset 6691:372b160180b3.
2018-05-05Backport: Make some changes recommended by clang-tidy.mitchell12-19/+19
Backport of changeset 6687:4cbf987c7590.
2018-04-13Backport: Use 'override' for methods that are overridden.Neil2-58/+60
Group some method declarations and definitions for AddRef/Release and PerLine. Backport of changeset 6684:bd4aae09fb4b.
2018-04-13Backport: Fix bug with regular expression searches failing to match at line ↵Neil1-16/+4
start or end. This was a work-around for infinite loops when replacing empty matches and this is now the application's responsibility. Backport of changeset 6683:bcae0331720b.
2018-03-03Backport: Split LineVector into interface and implementation classes to ↵Neil2-87/+87
allow future choice between 32-bit and 64-bit position implementations. Backport of changeset 6682:59913262eb19.
2018-04-11Backport: Remove workaround for problems with noexcept.Neil1-10/+2
Backport of changeset 6681:84298b2b66f2.
2018-04-11Backport: Set the last X chosen when SCI_REPLACESEL called to ensure macros ↵Neil1-0/+1
work when text insertion followed by line up or down. Backport of changeset 6679:480de02f71f2.
2018-04-05Backport: Backed out changeset: 7402342dc7a3 Caching client rectangle on ↵Neil4-34/+20
EditView. This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based. Backport of changeset 6673:a22abea8d41e.
2018-04-04Backport: Remove redundant forward declaration and move forward declarations ↵Neil1-10/+8
to top. Backport of changeset 6671:4b0f850270d8.
2018-04-04Backport: Cache client rectangle on EditView so it can be used easily inside ↵Neil4-20/+34
EditView. Backport of changeset 6669:7402342dc7a3.
2018-05-05Backport: Split decorations into interface and implementation.mitchell7-90/+171
Backport of changeset 6658:693e737f3155.
2018-03-27Backport: Return a FillResult struct from RunStyles::FillRange instead of ↵Neil5-19/+30
modifying arguments as that is clumsy when converting types. Backport of changeset 6657:43515e7709c6.
2018-03-27Backport: Use an interface for ContractionState so that there can be differentNeil7-196/+248
implementations of that interface. Backport of changeset 6656:ffa2a06d3987.
2018-03-25Backport: Removed comment about script that is not included.Neil1-1/+0
Backport of changeset 6649:07f35aa742ca.
2018-03-25Backport: Feature [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. Backport of changeset 6648:5f2c128ad6dc.
2018-03-24Backport: Removed unreachable branches in UTF8Classify.Neil1-8/+0
Backport of changeset 6647:f81b6f34bf07.
2018-03-24Backport: Removed unwanted include.Neil1-1/+0
Backport of changeset 6646:c64207e7e584.
2018-05-05Backport: Feature [feature-requests:#1212]. Move Unicode conversions into ↵mitchell5-52/+36
UniConversion. Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion. Backport of changeset 6645:463fa6965d9a.
2018-05-05Backport: Feature [feature-requests:#1211]. Use pre-computed table for ↵mitchell3-90/+102
UTF8BytesOfLead. Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests. Backport of changeset 6643:ebbb4e5aaf93.