[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'LazStringUtils' (#lazutils)

ShortDotsLine

Shortens and "ellipsifies" the specified value.

Declaration

Source position: lazstringutils.pas line 64

function ShortDotsLine(

  const Line: string

):string;

Arguments

Line

  

Line of text examined in the routine.

Function result

Shortened and "ellipsified" value for the specified line of text.

Description

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.

See also

MaxTextLen

  

Defines the maximum length for shortened or "ellipsified" text.

Utf8EscapeControlChars

  

Translates control characters in a UTF-8-encoded string into human readable format.


Version 4.0 Generated 2025-05-03 Home