Sign in Join
FPDoc Onlineexperiment

TEscapeMode enumeration

In unit LazUTF8

Represents styles used to escape control characters.

Declaration

pascal
TEscapeMode = (emPascal,emHexPascal,emC,emHexC,emAsciiControlNames,
 emPercent,emCustom)

Description

TEscapeMode is an enumerated type with values that determine the output style for escaped control characters in Utf8EscapeControlChars. A value from the enumeration is passed to Utf8EscapeControlChars to control conversion of control characters to their escaped equivalent. Use emCustom to perform custom encoding for control characters using the fixed-size array passed as an argument to Utf8EscapeControlChars.

Enumeration values modified in LazUtils version 5.0. Ordinal positions for the emHexC and emC enumeration values were swapped. Enumeration values emPercent and emCustom were added.

See also

Values

emPascalPascal-style escape characters. '#27'
emHexPascalPascal-style hexadecimal strings. '#$1B'
emCC-style strings. '\e'
emHexCC-style hexadecimal strings. '\0x1B'
emAsciiControlNamesASCII-style control character names. '[ESC]'
emPercentPercent encoding-style control characters. '%0D'
emCustomUser-defined encoding style. Passed as a TEscapedStrings argument in the Utf8EscapeControlChars routine.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.