From 88315fb8a22743bf6c3c1e0e8f598eb5f5a9f97c Mon Sep 17 00:00:00 2001 From: dsiders Date: Mon, 8 Apr 2024 19:52:09 +0100 Subject: [PATCH] Docs: LCL/lclproc. Removes or deprecates topics moved to LazUtils/lazutilities. Changed in ca71aeb4. * Removes: TStringsSortCompare * Deprecates: MergeSort, CreateFirstIdentifier, CreateNextIdentifier. --- docs/xml/lcl/lclproc.xml | 124 +++++++++++---------------------------- 1 file changed, 35 insertions(+), 89 deletions(-) diff --git a/docs/xml/lcl/lclproc.xml b/docs/xml/lcl/lclproc.xml index f6e5dc8481..530963ec12 100644 --- a/docs/xml/lcl/lclproc.xml +++ b/docs/xml/lcl/lclproc.xml @@ -301,85 +301,25 @@ Compares the Item addresses. - + -Specifies a comparison function type for string values in a TStrings instance. +Deprecated.

-TStringsSortCompare is an Integer function type used to compare string values -to determine the relative sort order. The return value indicates the relative -sort order for the compared items, and normally contains a value like the one -returned from CompareText. For example: -

-
-
<0
-
Item1 has a value that comes before Item2.
-
0
-
Item1 and Item2 have the same value.
-
>0
-
Item1 has a value that comes after Item2.
-
-

-The address for a TStringsSortCompare type is passed as an argument to the -MergeSort routine. +Use the MergeSort routine in the lazutilities.pas unit +(LazUtils) instead.

- - - -
- -Integer with the relative sort order for the compared values. - - -First string value for the comparison. - - -Second string value for the comparison. - - - -Implements a merge/sort for TStrings or TFPList. - -

-MergeSort is an overloaded routine used to implement a comparison-based sort -routine for values in List. List can be a TStrings or TFPList instance. No -actions are performed in the routine when List has not been assigned -(contains Nil). -

-

-The StartIndex and EndIndex arguments allow the initial and final entries in -a TFPList instance to be specified. When the values are omitted, they default -to the first value (position 0) and the last value (Count-1) in List. -

-

-OnCompare is the comparison routine used to determine the order for the -sorted values. It can be a TListSortCompare or TStringsSortCompare function, -depending on the overloaded variant of the called routine. -

-

-MergeSort implements the J. von Nuemann divide-and-conquer algorithm, with an -insertion sort used for lists with 6 or fewer elements. -

-
- - - - -
- -The list of values to sort (overloaded type). - - -The sort compare function. - - -The initial entry in List used in the merge/sort. - - -The final entry in List used in the merge/sort. + +Deprecated in LCL version 3.99 (Apr 2024). + + + + + + @@ -1630,33 +1570,40 @@ Deprecated in LCL version 4.0 (July 2023). -Replaces last digits with 1. + +Deprecated. +

-For example Name321 becomes Name1. +Use the CreateFirstIdentifier routine in the +lazutilities.pas unit (LazUtils) instead.

+ +Deprecated in LCL version 3.99 (Apr 2024). +
- - - - - - + + -Deprecated, see the LazUTF8 unit in the LazUtils -package for replacements. +Deprecated. + +

+Use the CreateNextIdentifier routine in the +lazutilities.pas unit (LazUtils) instead. +

+
+ +Deprecated in LCL version 3.99 (Apr 2024). + +
- - - - - - + + @@ -1676,7 +1623,6 @@ Font name examined in the routine. - Adds the help displayed for a command line parameter (and options) to the