Sign in Join
FPDoc Onlineexperiment

StripLN function

In unit LazStringUtils

Gets the first line of text up to an end-of-line character.

Declaration

pascal
function StripLN(const ALine: string): string

Description

StripLn is a String function used to get the first line of text in the specified value up to an end-of-line character. CR and LF characters are recognized as end-of-line characters.

The return value contains the values from ALine prior to the first end-of-line character, or the entire contents of ALine when an end-of-line character is not found.

The value in ALine is a constant parameter and is not altered in any way in the routine.

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