Unit 'LazStringUtils' Package
[Overview][Constants][Types][Procedures and functions][Index] [#lazutils]

LineEndingCount

Gets the number of LineEnding sequences in the specified text.

Declaration

Source position: lazstringutils.pas line 49

function LineEndingCount(

  const Txt: string;

  var LengthOfLastLine: Integer

):Integer;

Arguments

Txt

  

Text examined in the routine.

LengthOfLastLine

  

Number of characters in the last line.

Function result

Number of LineEnding sequences in the text.


Version 4.4 Generated 2025-11-08 Home