Unit 'syshelpers' Package
[Overview][Types][Classes][Variables][Index] [#rtl]

TBooleanSysHelper.ToString

Boolean type helper for customizable boolean string representation.

Declaration

Source position: syshelpersbh.inc line 2

public class function TBooleanSysHelper.ToString(

  const aValue: Boolean;

  const aTrueStr: string;

  const aFalseStr: string;

  const aCharsCase: TStringCaseFormat = scfUnchangedCase

):string; overload;

function TBooleanSysHelper.ToString(

  const aBitFormatSettings: TBitFormatSettings;

  const aCharsCase: TStringCaseFormat = scfUnchangedCase

):string; overload;

function TBooleanSysHelper.ToString(

  const aTrueStr: string;

  const aFalseStr: string;

  const aCharsCase: TStringCaseFormat = scfUnchangedCase

):string; overload;

function TBooleanSysHelper.ToString(

  const aCharsCase: TStringCaseFormat = scfUnchangedCase

):string; overload;

Arguments

aValue

  

Boolean value that will be converted to string.

aTrueStr

  

Custom string used for representation of boolean TRUE state.

aFalseStr

  

Custom string used for representation of boolean FALSE state.

aCharsCase

  

Optional string casing.

Function result

Helper function result string.

Arguments

aBitFormatSettings

  

Record holding custom strings for boolean to string conversion.

aCharsCase

  

Optional string casing.

Arguments

aTrueStr

  

Custom string used for representation of boolean TRUE state.

aFalseStr

  

Custom string used for representation of boolean FALSE state.

aCharsCase

  

Optional string casing.

Arguments

aCharsCase

  

Optional string casing.

Description

Convert Boolean type value to string using localized custom formatting.


Documentation generated on: Dec 26 2024