TCardinalHelper helper
Helper for a Cardinal-typed ordinal value.
Declaration
TCardinalHelper = classDescends from it: TCardinalSysHelper
Description
TCardinalHelper contains some auxiliary routines for a Cardinal-typed ordinal value.
It consists mainly of conversion routines to and from other types.See also
- TStringHelper
- TShortIntHelper
- TSmallIntHelper
- TWordHelper
- TByteHelper
- TIntegerHelper
- TInt64Helper
- TQWordHelper
- TNativeIntHelper
- TNativeUIntHelper
Properties
Bits | public | Read or write a bit. |
Nibbles | public | Read or write a nibble. |
Bytes | public | Read or write a byte. |
Words | public | Read or write a word. |
Methods
Parse | public | Convert from a string. |
Size | public | Size, in bytes, of the Cardinal value. |
ToString | public | Convert the value to string. |
TryParse | public | Try to convert a string to a Cardinal, report success or failure. |
GetBit | protected | |
PutBit | protected | |
GetNibble | protected | |
PutNibble | protected | |
GetByte | protected | |
PutByte | protected | |
GetWord | protected | |
PutWord | protected | |
ToBoolean | public | Convert to a boolean value. |
ToDouble | public | Convert to a double-sized floating point value. |
ToExtended | public | Convert to an extended-sized floating point value. |
ToBinString | public | Convert to a binary string representation. |
ToHexString | public | Convert to a hexadecimal string representation. |
ToSingle | public | Convert to an single-sized floating point value. |
SetBit | public | Set bit to 1. |
ClearBit | public | Set bit to 0. |
ToggleBit | public | Invert bit. |
TestBit | public | Check bit. |
Clear | public | Set value to 0. |
HighestSetBitPos | public | Return the position of the leftmost bit set. |
LowestSetBitPos | public | Return the position of the rightmost bit set. |
SetBitsCount | public | Count number of bits set. |
Types and constants
MaxValue | Maximum value for a Cardinal. | |
MinValue | Minimum value for a Cardinal. | |
MaxBit | Maximum value for a bit. | |
MinBit | Minimum value for a bit. | |
MaxNibble | Maximum value for a nibble. | |
MinNibble | Minimum value for a nibble. | |
MaxByte | Maximum value for a byte. | |
MinByte | Minimum value for a byte. | |
MaxWord | Maximum value for a word. | |
MinWord | Minimum value for a word. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
