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

UTF8Trim

Removes space at start and end

Declaration

Source position: lazutf8.pas line 170

function UTF8Trim(

  const s: string;

  Flags: TUTF8TrimFlags = []

):string;

Description

It removes spaces, tabs, line breaks and control characters at start and end. Use Flags to only delete at start or only at end or to to not delete line breaks. Control characters are the unicode sets C0 and C1 and the left-to-right and right-to-left marks.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.