Sign in Join
FPDoc Onlineexperiment

TByteSysHelper.ToHexString function

Member of TByteSysHelperprotectedIn unit syshelpers

Byte type helper method for customizable hexadecimal string representation.

Declaration

pascal
function ToHexString(const aHexFormatSettings: THexFormatSettings; 
 const aShowLeadingZeros: Boolean; 
 const aMinDigits: Integer): string; overload
function ToHexString(const aHexFormatSettings: THexFormatSettings; 
 const aMinDigits: Integer): string; overload
function ToHexString(const aHexFormatSettings: THexFormatSettings; 
 aShowLeadingZeros: Boolean=True): string; overload
function ToHexString(const aMinDigits: Integer): string; overload
function ToHexString(const aShowLeadingZeros: Boolean=True): string
 ; overload

Arguments

aHexFormatSettings

Record containing custom strings needed for conversion to hexadecimal string.

aShowLeadingZeros

Should leading zeros be shown or not in output string.

aMinDigits

Minimal number of hexadecimal digits to show in output string.

Function result

Hexadecimal output string.

Description

Convert Byte type value to hexadecimal string using localized custom formatting.

See also

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