Sign in Join
FPDoc Onlineexperiment

TWordSysHelper.ToBinString function

Member of TWordSysHelperprotectedIn unit syshelpers

Word type helper method for customizable binary string representation.

Declaration

pascal
function ToBinString(const aBinFormatSettings: TBinFormatSettings; 
 const aShowLeadingZeros: Boolean; 
 const aMinDigits: Integer): string; overload
function ToBinString(const aBinFormatSettings: TBinFormatSettings; 
 const aMinDigits: Integer): string; overload
function ToBinString(const aBinFormatSettings: TBinFormatSettings; 
 aShowLeadingZeros: Boolean=True): string; overload
function ToBinString(const aMinDigits: Integer): string; overload
function ToBinString(const aShowLeadingZeros: Boolean=True): string
 ; overload

Arguments

aBinFormatSettings

Record containing custom strings needed for conversion to binary string.

aShowLeadingZeros

Should leading zeros be shown or not in output string.

aMinDigits

Minimal number of binary digits to show in output string.

Function result

Binary output string.

Description

Convert Word type value to binary string using localized custom formatting. TBooleanSysHelper.ToOneZeroString method is used for conversion of individual bits.

See also

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