[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Helper for a SmallInt-typed ordinal value.
Source position: syshelph.inc line 1016
type TSmallIntHelper = type helper |
||
default |
||
const |
||
MaxValue = High(SmallInt) |
|
Maximum value for a SmallInt. |
MinValue = Low(SmallInt) |
|
Minimum value for a SmallInt. |
MaxBit = High(TSmallIntBitIndex) |
|
Maximum value for a bit. |
MinBit = Low(TSmallIntBitIndex) |
|
Minimum value for a bit. |
MaxNibble = High(TSmallIntNibbleIndex) |
|
Maximum value for a nibble. |
MinNibble = Low(TSmallIntNibbleIndex) |
|
Minimum value for a nibble. |
MaxByte = High(TSmallIntByteIndex) |
|
Maximum value for a byte. |
MinByte = Low(TSmallIntByteIndex) |
|
Minimum value for a byte. |
public |
||
class function Parse(); |
|
Convert from a string. |
class function Size; |
|
Size, in bytes, of the SmallInt value. |
class function ToString(); |
|
Convert the value to string. |
class function TryParse(); |
|
Try to convert a string to a SmallInt, report success or failure. |
function ToBoolean; |
|
Convert to a boolean value. |
function ToBinString; |
|
Convert to a binary string representation. |
function ToHexString(); |
|
Convert to a hexadecimal string representation. |
function ToSingle; |
|
Convert to an single-sized floating point value. |
function ToDouble; |
|
Convert to a double-sized floating point value. |
function ToExtended; |
|
Convert to an extended-sized floating point value. |
function SetBit(); |
|
Set bit to 1. |
function ClearBit(); |
|
Set bit to 0. |
function ToggleBit(); |
|
Invert bit. |
function TestBit(); |
|
Check bit. |
procedure Clear; |
|
Set value to 0. |
function HighestSetBitPos; |
|
Return the position of the leftmost bit set. |
function LowestSetBitPos; |
|
Return the position of the rightmost bit set. |
function SetBitsCount; |
|
Count number of bits set. |
property Bits []: Boolean; [rw] |
|
Read or write a bit. |
|
Read or write a nibble. |
|
|
Read or write a byte. |
|
end; |
|
Helper for a SmallInt-typed ordinal value. |
TSmallIntHelper contains some auxiliary routines for a SmallInt-typed ordinal value. It consists mainly of conversion routines to and from other types.
|
Helper type for strings. |
|
|
Helper for a ShortInt-typed ordinal value. |
|
|
Helper for a byte-typed ordinal value. |
|
|
Helper for a Word-typed ordinal value. |
|
|
Helper for a Cardinal-typed ordinal value. |
|
|
Helper for a Integer-typed ordinal value. |
|
|
Helper for a Int64-typed ordinal value. |
|
|
Helper for a QWord-typed ordinal value. |
|
|
Helper for a NativeInt-typed ordinal value. |
|
|
Helper for a NativeUInt-typed ordinal value. |