UTF8Trim function
Removes leading and trailing whitespace or control characters.
Declaration
function UTF8Trim(const s: string; Flags: TUTF8TrimFlags=[]): stringArguments
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.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
