[Overview][Constants][Types][Procedures and functions][Index] |
Shortens and "ellipsifies" the specified value.
Source position: lazstringutils.pas line 64
function ShortDotsLine( |
const Line: string |
):string; |
Line |
|
Line of text examined in the routine. |
Shortened and "ellipsified" value for the specified line of text.
ShortDotsLine is a String function used to generate a shortened and "ellipsified" string for the value in Line.
ShortDotsLine calls Utf8EscapeControlChars to convert any control characters in Line to their representation as a hexadecimal character value.
The value in the MaxTextLen constant is used as the maximum length for the "ellipsified" string value. If the number of UTF-8 codepoints in the line is larger than the value in MaxTextLen, the string is shortened to the maximum length and 3 (three) Period ('.') characters are appended to the return value.
|
Defines the maximum length for shortened or "ellipsified" text. |
|
|
Translates control characters in a UTF-8-encoded string into human readable format. |
Version 4.0 | Generated 2025-05-03 | Home |