Sign in Join
FPDoc Onlineexperiment

BeautifyLineXY function

In unit LazStringUtils

Combines and optionally shortens the specified values.

Declaration

pascal
function BeautifyLineXY(const Filename: string; const Line: string; 
 X: Integer; Y: Integer): string

Description

BeautifyLineXY is a String function used to combine the values in the Filename, Line, X and Y arguments into a formatted message. The message is in the form:

examplefile.pas (123, 1) The error message goes here.

Filename contains a file name used at the start of the formatted message.

X represents the line number in the context for the message.

Y represents the column number in the context for the message.

Line contains the context for the formatted message. The ShortDotsLine routine is called to shorten and "ellipsify" the message in Line when needed.

BeautifyLineXY is used in the implementation of Jump History and Search Result views in the Lazarus IDE.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.