TShortIntHelper
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Helper for a ShortInt-typed ordinal value
Declaration
Source position: syshelph.inc line 409
Type
TShortIntHelper = type helper type for ShortInt
public
MaxValue = 127;
MinValue = - 128;
class function Parse(const AString: string) : ShortInt; Static;
class function Size : Integer; Static;
class function ToString(const AValue: ShortInt) : string; Overload
; Static;
function ToString : string; Overload;
class function TryParse(const AString: string; out AValue: ShortInt)
: Boolean; Static;
function ToBoolean : Boolean;
function ToDouble : Double;
function ToExtended : Extended;
function ToBinString : string;
function ToHexString(const AMinDigits: Integer) : string; Overload;
function ToHexString : string; Overload;
function ToSingle : Single;
function SetBit(const Index: TShortIntBitIndex) : ShortInt;
function ClearBit(const Index: TShortIntBitIndex) : ShortInt;
function ToggleBit(const Index: TShortIntBitIndex) : ShortInt;
function TestBit(const Index: TShortIntBitIndex) : Boolean;
end
;
Description
TShortIntHelper contains some auxiliary routines for a ShortInt-typed ordinal value. It consists mainly of conversion routines to and from other types.
Members
Member | Type | Visibility | Description |
---|---|---|---|
ClearBit | Method | public | |
MaxValue | Constant | public | Maximum value for a ShortInt |
MinValue | Constant | public | Minimum value for a ShortInt |
Parse | Method | public | Convert from a string |
SetBit | Method | public | |
Size | Method | public | Size, in bytes, of the ShortInt value |
TestBit | Method | public | |
ToBinString | Method | public | |
ToBoolean | Method | public | Convert to a boolean value |
ToDouble | Method | public | Convert to a double-sized floating point value |
ToExtended | Method | public | Convert to an extended-sized floating point value |
ToggleBit | Method | public | |
ToHexString | Method | public | Convert to a hexadecimal string representation |
ToSingle | Method | public | Convert to an single-sized floating point value |
ToString | Method | public | Convert the value to string |
TryParse | Method | public | Try to convert a string to a ShortInt, report success or failure |
Inheritance
Class | Description |
---|---|
TShortIntHelper | Helper for a ShortInt-typed ordinal value |
See also
Name | Description |
---|---|
TByteHelper | Helper for a byte-typed ordinal value |
TCardinalHelper | Helper for a Cardinal-typed ordinal value |
TInt64Helper | Helper for a Int64-typed ordinal value |
TIntegerHelper | Helper for a Integer-typed ordinal value |
TNativeIntHelper | Helper for a NativeInt-typed ordinal value |
TNativeUIntHelper | Helper for a NativeUInt-typed ordinal value |
TQWordHelper | Helper for a QWord-typed ordinal value |
TSmallIntHelper | Helper for a SmallInt-typed ordinal value |
TStringHelper | Helper type for strings. |
TWordHelper | Helper for a Word-typed ordinal value |