Sign in Join
FPDoc Onlineexperiment

TWordHelper helper

In unit sysutils

Helper for a Word-typed ordinal value.

Declaration

pascal
TWordHelper = class

Descends from it: TWordSysHelper

Description

TWordHelper contains some auxiliary routines for a Word-typed ordinal value. It consists mainly of conversion routines to and from other types.

See also

Properties

BitspublicRead or write a bit.
NibblespublicRead or write a nibble.
BytespublicRead or write a byte.

Methods

ParsepublicConvert from a string.
SizepublicSize, in bytes, of the Word value.
ToStringpublicConvert the value to string.
TryParsepublicTry to convert a string to a Word, report success or failure.
GetBitprotected
PutBitprotected
GetNibbleprotected
PutNibbleprotected
GetByteprotected
PutByteprotected
ToBooleanpublicConvert to a boolean value.
ToDoublepublicConvert to a double-sized floating point value.
ToExtendedpublicConvert to an extended-sized floating point value.
ToBinStringpublicConvert to a binary string representation.
ToHexStringpublicConvert to a hexadecimal string representation.
ToSinglepublicConvert to an single-sized floating point value.
SetBitpublicSet bit to 1.
ClearBitpublicSet bit to 0.
ToggleBitpublicInvert bit.
TestBitpublicCheck bit.
ClearpublicSet value to 0.
HighestSetBitPospublicReturn the position of the leftmost bit set.
LowestSetBitPospublicReturn the position of the rightmost bit set.
SetBitsCountpublicCount number of bits set.

Types and constants

MaxValueMaximum value for a Word.
MinValueMinimum value for a Word.
MaxBitMaximum value for a bit.
MinBitMinimum value for a bit.
MaxNibbleMaximum value for a nibble.
MinNibbleMinimum value for a nibble.
MaxByteMaximum value for a byte.
MinByteMinimum value for a byte.

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