From 7689b1805e9b5fe08ec13703b3619ad6bcaf5d5d Mon Sep 17 00:00:00 2001 From: dsiders Date: Mon, 22 Jan 2024 18:02:51 +0000 Subject: [PATCH] Docs: LazUtils/lazutf8. Updates the UTF8WrapText for changes in 4f8f408f. --- docs/xml/lazutils/lazutf8.xml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/xml/lazutils/lazutf8.xml b/docs/xml/lazutils/lazutf8.xml index 2378ec2b2a..ee0cb033ea 100644 --- a/docs/xml/lazutils/lazutf8.xml +++ b/docs/xml/lazutils/lazutf8.xml @@ -2027,7 +2027,7 @@ number of byte values in p to the return value for the function. -Gets the right-most position in the source string for the substring value. +Gets the right-most position in the Source string for the value in Substr. @@ -2045,7 +2045,9 @@ Gets the right-most position in the source string for the substring value. -Creates a word wrapped version of the specified string. + +Creates a word-wrapped version of the specified string. +

UTF8WrapText is an overloaded String function used to @@ -2061,12 +2063,19 @@ and #9 (Tab). BreakStr contains the end-of-line sequence used to represent a line break inserted into the return value.

-Use Indent to specify the indentation inserted at the beginning of -each line in the word-wrapped values. +Use Indent to specify the number of Space (#32) characters inserted +as indentation at the beginning of each word-wrapped line. The default value is +0 (zero) and omits indentation in the word-wrapped lines. A negative value in +Indent causes the argument to be set to 0. +

+

+The Indent argument affects the number of UTF-8 characters allowed in each +word-wrapped line. When set to a positive non-zero value, the maximum number of +characters allowed per line is MaxCol - Indent.

No actions are performed in the function when S is an empty string (''), -MaxCol is set to 0 (zero), or BreakChars is an empty set. +MaxCol is set to 0 (zero), or BreakChars is an empty set ([]).