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

UTF8Trim

Removes leading and trailing whitespace or control characters.

Declaration

Source position: lazutf8.pas line 170

function UTF8Trim(

  const s: string;

  Flags: TUTF8TrimFlags = []

):string;

Arguments

s

  

String with values to trim.

Flags

  

Actions to perform in the function.

Function result

Trimmed values for the string.

Description

UTF8Trim removes spaces, tabs, line breaks and control characters at both the start and the end of the UTF-8-encoded value in s. Use Flags to delete at the start only or at the end only, 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.


Version 3.2 Generated 2024-02-25 Home