Docs: LCL/lclproc. Removes or deprecates topics moved to LazUtils/lazutilities. Changed in ca71aeb4.

* Removes: TStringsSortCompare
* Deprecates: MergeSort, CreateFirstIdentifier, CreateNextIdentifier.
This commit is contained in:
dsiders 2024-04-08 19:52:09 +01:00
parent d78ee9524f
commit 88315fb8a2

View File

@ -301,85 +301,25 @@ Compares the Item addresses.
<short/> <short/>
</element> </element>
<element name="TStringsSortCompare"> <element name="MergeSort">
<short> <short>
Specifies a comparison function type for string values in a TStrings instance. Deprecated.
</short> </short>
<descr> <descr>
<p> <p>
TStringsSortCompare is an Integer function type used to compare string values Use the <var>MergeSort</var> routine in the <file>lazutilities.pas</file> unit
to determine the relative sort order. The return value indicates the relative (LazUtils) instead.
sort order for the compared items, and normally contains a value like the one
returned from CompareText. For example:
</p>
<dl>
<dt>&lt;0</dt>
<dd>Item1 has a value that comes before Item2.</dd>
<dt>0</dt>
<dd>Item1 and Item2 have the same value.</dd>
<dt>&gt;0</dt>
<dd>Item1 has a value that comes after Item2.</dd>
</dl>
<p>
The address for a TStringsSortCompare type is passed as an argument to the
MergeSort routine.
</p> </p>
</descr> </descr>
<seealso> <version>
<link id="MergeSort"/> Deprecated in LCL version 3.99 (Apr 2024).
</seealso> </version>
</element> <seealso/>
<element name="TStringsSortCompare.Result">
<short>Integer with the relative sort order for the compared values.</short>
</element>
<element name="TStringsSortCompare.Item1">
<short>First string value for the comparison.</short>
</element>
<element name="TStringsSortCompare.Item2">
<short>Second string value for the comparison.</short>
</element>
<element name="MergeSort">
<short>Implements a merge/sort for TStrings or TFPList.</short>
<descr>
<p>
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 <b>Nil</b>).
</p>
<p>
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.
</p>
<p>
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.
</p>
<p>
MergeSort implements the J. von Nuemann divide-and-conquer algorithm, with an
insertion sort used for lists with 6 or fewer elements.
</p>
</descr>
<seealso>
<link id="TListSortCompare"/>
<link id="TStringsSortCompare"/>
</seealso>
</element>
<element name="MergeSort.List">
<short>The list of values to sort (overloaded type).</short>
</element>
<element name="MergeSort.OnCompare">
<short>The sort compare function.</short>
</element>
<element name="MergeSort.StartIndex">
<short>The initial entry in List used in the merge/sort.</short>
</element>
<element name="MergeSort.EndIndex">
<short>The final entry in List used in the merge/sort.</short>
</element> </element>
<element name="MergeSort.List"/>
<element name="MergeSort.OnCompare"/>
<element name="MergeSort.StartIndex"/>
<element name="MergeSort.EndIndex"/>
<element name="KeyAndShiftStateToKeyString"> <element name="KeyAndShiftStateToKeyString">
<short> <short>
@ -1630,33 +1570,40 @@ Deprecated in LCL version 4.0 (July 2023).
</element> </element>
<element name="CreateFirstIdentifier"> <element name="CreateFirstIdentifier">
<short>Replaces last digits with 1.</short> <short>
Deprecated.
</short>
<descr> <descr>
<p> <p>
For example Name321 becomes Name1. Use the <var>CreateFirstIdentifier</var> routine in the
<file>lazutilities.pas</file> unit (<b>LazUtils</b>) instead.
</p> </p>
</descr> </descr>
<version>
Deprecated in LCL version 3.99 (Apr 2024).
</version>
<seealso/> <seealso/>
</element> </element>
<element name="CreateFirstIdentifier.Result"> <element name="CreateFirstIdentifier.Result"/>
<short/> <element name="CreateFirstIdentifier.Identifier"/>
</element>
<element name="CreateFirstIdentifier.Identifier">
<short/>
</element>
<element name="CreateNextIdentifier"> <element name="CreateNextIdentifier">
<short> <short>
Deprecated, see the <file>LazUTF8</file> unit in the <file>LazUtils</file> Deprecated.
package for replacements.
</short> </short>
<descr>
<p>
Use the <var>CreateNextIdentifier</var> routine in the
<file>lazutilities.pas</file> unit (<b>LazUtils</b>) instead.
</p>
</descr>
<version>
Deprecated in LCL version 3.99 (Apr 2024).
</version>
<seealso/>
</element> </element>
<element name="CreateNextIdentifier.Result"> <element name="CreateNextIdentifier.Result"/>
<short/> <element name="CreateNextIdentifier.Identifier"/>
</element>
<element name="CreateNextIdentifier.Identifier">
<short/>
</element>
<element name="IsFontNameDefault"> <element name="IsFontNameDefault">
<short> <short>
@ -1676,7 +1623,6 @@ Font name examined in the routine.
</short> </short>
</element> </element>
<!-- TODO: Added in f0eb9b84. Issue #40690. -->
<element name="AddCmdLineParamDesc"> <element name="AddCmdLineParamDesc">
<short> <short>
Adds the help displayed for a command line parameter (and options) to the Adds the help displayed for a command line parameter (and options) to the