From 2a9142f41788ead16421020bda23d8292b4b651c Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 22 Aug 2023 17:55:32 +0100 Subject: [PATCH] Docs: LCL/lresources. Adds the SameLFMTypeName topic for changes in b59196e2. --- docs/xml/lcl/lresources.xml | 54 ++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/docs/xml/lcl/lresources.xml b/docs/xml/lcl/lresources.xml index a4030feb40..d03899cbad 100644 --- a/docs/xml/lcl/lresources.xml +++ b/docs/xml/lcl/lresources.xml @@ -258,7 +258,7 @@ ValueType is stored in uppercase. TLResource instance for the resource found with the specified name and value -type. +type. @@ -1774,7 +1774,7 @@ with toFloat values subdivided into number, single, date or currency, according to FloatType.

-All other characters are returned literally. +All other characters are returned verbatim.

@@ -3147,9 +3147,55 @@ include a unit name space such as 'ns.unit2/TForm2'.
+ + +Indicates whether the specified LFM resource matches the specified unit and +type names. + + +

+SameLFMTypeName is Boolean function used to determine +whether the type name specified in LFMTypeName refers to the same definition as +the one represented by the AUntiName and ATypeName arguments. It accounts for +optional unit information in LFMTypeName. If a unit name prefix is not included +in LFMTypeName, CompareText is called to perform a case-insensitive comparison +of the values in ATypeName and LFMTypeName. When unit information is present, +AUnitName is included in the comparision when it is not an empty string. +

+

+SameLFMType is used in the implementation of the source code file manager in +the Lazarus IDE. +

+
+ +Added in LCL version 4.0. + + +
+ + +True when the specified values refer to the same LFM resource. + + + + +Unit name used in the comparison. + + + + +Type name for the form resource used in the comparison. + + + + +Qualified LFM resource name compared to the unit and type arguments. + + + -Represent the LRS stream format offered as the original content for conversion +Represents the LRS stream format offered as the original content for conversion routines like LRSObjectToText and LRSObjectResToText. @@ -3731,7 +3777,7 @@ Writes the specified number of Null characters to a TStream instance.

An ASCII NUL character has the value #0. -

+