Convert
Overview
Converter class to convert 1 type to another
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
Class Methods
Base32StringToByteArray
class method Base32StringToByteArray(S: String): array of Byte
static Byte[] Base32StringToByteArray(String S)
static func Base32StringToByteArray(_ S: String) -> Byte...
static Byte[] Base32StringToByteArray(String S)
Shared Function Base32StringToByteArray(S As String) As Byte()
Parameters:
- S:
Base64StringToByteArray
Convert a base 64 string to it's byte array equivalent.
class method Base64StringToByteArray(S: String): array of Byte
static Byte[] Base64StringToByteArray(String S)
static func Base64StringToByteArray(_ S: String) -> Byte...
static Byte[] Base64StringToByteArray(String S)
Shared Function Base64StringToByteArray(S As String) As Byte()
Parameters:
- S:
HexStringToByteArray
Convert a hexadecimal string to it's byte array equivalent.
class method HexStringToByteArray(aData: not nullable String): array of Byte
static Byte[] HexStringToByteArray(String! aData)
static func HexStringToByteArray(_ aData: String) -> Byte...
static Byte[] HexStringToByteArray(String aData)
Shared Function HexStringToByteArray(aData As String) As Byte()
Parameters:
- aData:
HexStringToUInt32
Convert a hexadecimal string to an uint32.
class method HexStringToUInt32(aValue: not nullable String): UInt32
static UInt32 HexStringToUInt32(String! aValue)
static func HexStringToUInt32(_ aValue: String) -> UInt32
static Cardinal HexStringToUInt32(String aValue)
Shared Function HexStringToUInt32(aValue As String) As UInt32
Parameters:
- aValue:
HexStringToUInt64
Convert a hexadecimal string to an uint64.
class method HexStringToUInt64(aValue: not nullable String): UInt64
static UInt64 HexStringToUInt64(String! aValue)
static func HexStringToUInt64(_ aValue: String) -> UInt64
static UInt64 HexStringToUInt64(String aValue)
Shared Function HexStringToUInt64(aValue As String) As UInt64
Parameters:
- aValue:
initialize Toffee, ToffeeV2
static func initialize()
MemorySizeToString
class method MemorySizeToString(aSize: UInt64): String
static String MemorySizeToString(UInt64 aSize)
static func MemorySizeToString(_ aSize: UInt64) -> String
static String MemorySizeToString(UInt64 aSize)
Shared Function MemorySizeToString(aSize As UInt64) As String
Parameters:
- aSize:
MillisecondsToTimeString
class method MillisecondsToTimeString(aMS: Double): String
static String MillisecondsToTimeString(Double aMS)
static func MillisecondsToTimeString(_ aMS: Double) -> String
static String MillisecondsToTimeString(Double aMS)
Shared Function MillisecondsToTimeString(aMS As Double) As String
Parameters:
- aMS:
class method ToAsciiString(aData: array of Byte): not nullable String
static String! ToAsciiString(Byte[] aData)
static func ToAsciiString(_ aData: Byte...) -> String
static String ToAsciiString(Byte[] aData)
Shared Function ToAsciiString(aData As Byte()) As String
Parameters:
- aData:
class method ToAsciiString(aData: array of Byte; aOffset: Int32; aCount: Int32): not nullable String
static String! ToAsciiString(Byte[] aData, Int32 aOffset, Int32 aCount)
static func ToAsciiString(_ aData: Byte..., _ aOffset: Int32, _ aCount: Int32) -> String
static String ToAsciiString(Byte[] aData, Integer aOffset, Integer aCount)
Shared Function ToAsciiString(aData As Byte(), aOffset As Int32, aCount As Int32) As String
Parameters:
- aData:
- aOffset:
- aCount:
class method ToBase32String(S: array of Byte): not nullable String
static String! ToBase32String(Byte[] S)
static func ToBase32String(_ S: Byte...) -> String
static String ToBase32String(Byte[] S)
Shared Function ToBase32String(S As Byte()) As String
Parameters:
- S:
class method ToBase32String(S: array of Byte; aStartIndex: Int32; aLength: Int32): not nullable String
static String! ToBase32String(Byte[] S, Int32 aStartIndex, Int32 aLength)
static func ToBase32String(_ S: Byte..., _ aStartIndex: Int32, _ aLength: Int32) -> String
static String ToBase32String(Byte[] S, Integer aStartIndex, Integer aLength)
Shared Function ToBase32String(S As Byte(), aStartIndex As Int32, aLength As Int32) As String
Parameters:
- S:
- aStartIndex:
- aLength:
class method ToBase64String(S: array of Byte): not nullable String
static String! ToBase64String(Byte[] S)
static func ToBase64String(_ S: Byte...) -> String
static String ToBase64String(Byte[] S)
Shared Function ToBase64String(S As Byte()) As String
Parameters:
- S:
Convert a byte array to a base64 string.
class method ToBase64String(S: array of Byte; aStartIndex: Int32; aLength: Int32): not nullable String
static String! ToBase64String(Byte[] S, Int32 aStartIndex, Int32 aLength)
static func ToBase64String(_ S: Byte..., _ aStartIndex: Int32, _ aLength: Int32) -> String
static String ToBase64String(Byte[] S, Integer aStartIndex, Integer aLength)
Shared Function ToBase64String(S As Byte(), aStartIndex As Int32, aLength As Int32) As String
Parameters:
- S:
- aStartIndex:
- aLength:
ToBinaryString
Convert a number to a binary number string, (1/0's ) of at least aWidth width.
class method ToBinaryString(aValue: UInt64; aWidth: Int32 := 0): not nullable String
static String! ToBinaryString(UInt64 aValue, Int32 aWidth = 0)
static func ToBinaryString(_ aValue: UInt64, _ aWidth: Int32 = 0) -> String
static String ToBinaryString(UInt64 aValue, Integer aWidth)
Shared Function ToBinaryString(aValue As UInt64, aWidth As Int32 = 0) As String
Parameters:
- aValue:
- aWidth:
Convert a double to a boolean.
class method ToBoolean(aValue: Double): Boolean
static Boolean ToBoolean(Double aValue)
static func ToBoolean(_ aValue: Double) -> Boolean
static Boolean ToBoolean(Double aValue)
Shared Function ToBoolean(aValue As Double) As Boolean
Parameters:
- aValue:
Convert an int32 to a boolean.
class method ToBoolean(aValue: Int32): Boolean
static Boolean ToBoolean(Int32 aValue)
static func ToBoolean(_ aValue: Int32) -> Boolean
static Boolean ToBoolean(Integer aValue)
Shared Function ToBoolean(aValue As Int32) As Boolean
Parameters:
- aValue:
Convert an int64 to a boolean.
class method ToBoolean(aValue: Int64): Boolean
static Boolean ToBoolean(Int64 aValue)
static func ToBoolean(_ aValue: Int64) -> Boolean
static Boolean ToBoolean(Int64 aValue)
Shared Function ToBoolean(aValue As Int64) As Boolean
Parameters:
- aValue:
Convert a string to a boolean.
class method ToBoolean(aValue: not nullable String): Boolean
static Boolean ToBoolean(String! aValue)
static func ToBoolean(_ aValue: String) -> Boolean
static Boolean ToBoolean(String aValue)
Shared Function ToBoolean(aValue As String) As Boolean
Parameters:
- aValue:
Convert a byte to a boolean.
class method ToBoolean(aValue: Byte): Boolean
static Boolean ToBoolean(Byte aValue)
static func ToBoolean(_ aValue: Byte) -> Boolean
static Boolean ToBoolean(Byte aValue)
Shared Function ToBoolean(aValue As Byte) As Boolean
Parameters:
- aValue:
Convert a boolean to a byte.
class method ToByte(aValue: Boolean): Byte
static Byte ToByte(Boolean aValue)
static func ToByte(_ aValue: Boolean) -> Byte
static Byte ToByte(Boolean aValue)
Shared Function ToByte(aValue As Boolean) As Byte
Parameters:
- aValue:
Convert a char to a byte.
class method ToByte(aValue: Char): Byte
static Byte ToByte(Char aValue)
static func ToByte(_ aValue: Char) -> Byte
static Byte ToByte(Char aValue)
Shared Function ToByte(aValue As Char) As Byte
Parameters:
- aValue:
Convert a double to a byte.
class method ToByte(aValue: Double): Byte
static Byte ToByte(Double aValue)
static func ToByte(_ aValue: Double) -> Byte
static Byte ToByte(Double aValue)
Shared Function ToByte(aValue As Double) As Byte
Parameters:
- aValue:
Convert an int32 to a byte.
class method ToByte(aValue: Int32): Byte
static Byte ToByte(Int32 aValue)
static func ToByte(_ aValue: Int32) -> Byte
static Byte ToByte(Integer aValue)
Shared Function ToByte(aValue As Int32) As Byte
Parameters:
- aValue:
Convert an int64 to a byte.
class method ToByte(aValue: Int64): Byte
static Byte ToByte(Int64 aValue)
static func ToByte(_ aValue: Int64) -> Byte
static Byte ToByte(Int64 aValue)
Shared Function ToByte(aValue As Int64) As Byte
Parameters:
- aValue:
Convert a string to a byte.
class method ToByte(aValue: not nullable String): Byte
static Byte ToByte(String! aValue)
static func ToByte(_ aValue: String) -> Byte
static Byte ToByte(String aValue)
Shared Function ToByte(aValue As String) As Byte
Parameters:
- aValue:
Convert a boolean to a char.
class method ToChar(aValue: Boolean): Char
static Char ToChar(Boolean aValue)
static func ToChar(_ aValue: Boolean) -> Char
static Char ToChar(Boolean aValue)
Shared Function ToChar(aValue As Boolean) As Char
Parameters:
- aValue:
Convert an int32 to a char.
class method ToChar(aValue: Int32): Char
static Char ToChar(Int32 aValue)
static func ToChar(_ aValue: Int32) -> Char
static Char ToChar(Integer aValue)
Shared Function ToChar(aValue As Int32) As Char
Parameters:
- aValue:
Convert an int64 to a char.
class method ToChar(aValue: Int64): Char
static Char ToChar(Int64 aValue)
static func ToChar(_ aValue: Int64) -> Char
static Char ToChar(Int64 aValue)
Shared Function ToChar(aValue As Int64) As Char
Parameters:
- aValue:
Convert a string to a char.
class method ToChar(aValue: not nullable String): Char
static Char ToChar(String! aValue)
static func ToChar(_ aValue: String) -> Char
static Char ToChar(String aValue)
Shared Function ToChar(aValue As String) As Char
Parameters:
- aValue:
Convert a byte to a char.
class method ToChar(aValue: Byte): Char
static Char ToChar(Byte aValue)
static func ToChar(_ aValue: Byte) -> Char
static Char ToChar(Byte aValue)
Shared Function ToChar(aValue As Byte) As Char
Parameters:
- aValue:
Convert a boolean to a double.
class method ToDouble(aValue: Boolean): Double
static Double ToDouble(Boolean aValue)
static func ToDouble(_ aValue: Boolean) -> Double
static Double ToDouble(Boolean aValue)
Shared Function ToDouble(aValue As Boolean) As Double
Parameters:
- aValue:
Convert an int32 to a double.
class method ToDouble(aValue: Int32): Double
static Double ToDouble(Int32 aValue)
static func ToDouble(_ aValue: Int32) -> Double
static Double ToDouble(Integer aValue)
Shared Function ToDouble(aValue As Int32) As Double
Parameters:
- aValue:
Convert an int64 to a double.
class method ToDouble(aValue: Int64): Double
static Double ToDouble(Int64 aValue)
static func ToDouble(_ aValue: Int64) -> Double
static Double ToDouble(Int64 aValue)
Shared Function ToDouble(aValue As Int64) As Double
Parameters:
- aValue:
Convert a string to a double, given a locale.
// .NET, .NET Core 6.0, .NET Standard 2.0
class method ToDouble(aValue: not nullable String; aLocale: Locale := nil): Double
// Island
class method ToDouble(aValue: not nullable String; aLocale: Locale): Double
// .NET, .NET Core 6.0, .NET Standard 2.0
static Double ToDouble(String! aValue, Locale aLocale = null)
// Island
static Double ToDouble(String! aValue, Locale aLocale)
static func ToDouble(_ aValue: String, _ aLocale: Locale) -> Double
static Double ToDouble(String aValue, Locale aLocale)
// .NET, .NET Core 6.0, .NET Standard 2.0
Shared Function ToDouble(aValue As String, aLocale As Locale = Null) As Double
// Island
Shared Function ToDouble(aValue As String, aLocale As Locale) As Double
Parameters:
- aValue:
- aLocale:
Convert a byte to a double.
class method ToDouble(aValue: Byte): Double
static Double ToDouble(Byte aValue)
static func ToDouble(_ aValue: Byte) -> Double
static Double ToDouble(Byte aValue)
Shared Function ToDouble(aValue As Byte) As Double
Parameters:
- aValue:
ToDoubleInvariant
Convert an string to a double, in the invariant culture.
class method ToDoubleInvariant(aValue: not nullable String): Double
static Double ToDoubleInvariant(String! aValue)
static func ToDoubleInvariant(_ aValue: String) -> Double
static Double ToDoubleInvariant(String aValue)
Shared Function ToDoubleInvariant(aValue As String) As Double
Parameters:
- aValue:
class method ToHexString(aData: array of Byte; aCount: Int32; aSpacer: String := nil; aBytesPerLine: Int32 := -1): not nullable String
static String! ToHexString(Byte[] aData, Int32 aCount, String aSpacer = null, Int32 aBytesPerLine = -1)
static func ToHexString(_ aData: Byte..., _ aCount: Int32, _ aSpacer: String = nil, _ aBytesPerLine: Int32 = -1) -> String
static String ToHexString(Byte[] aData, Integer aCount, String aSpacer, Integer aBytesPerLine)
Shared Function ToHexString(aData As Byte(), aCount As Int32, aSpacer As String = Null, aBytesPerLine As Int32 = -1) As String
Parameters:
- aData:
- aCount:
- aSpacer:
- aBytesPerLine:
class method ToHexString(aData: array of Byte; aOffset: Int32; aCount: Int32; aSpacer: String := nil; aBytesPerLine: Int32 := -1): not nullable String
static String! ToHexString(Byte[] aData, Int32 aOffset, Int32 aCount, String aSpacer = null, Int32 aBytesPerLine = -1)
static func ToHexString(_ aData: Byte..., _ aOffset: Int32, _ aCount: Int32, _ aSpacer: String = nil, _ aBytesPerLine: Int32 = -1) -> String
static String ToHexString(Byte[] aData, Integer aOffset, Integer aCount, String aSpacer, Integer aBytesPerLine)
Shared Function ToHexString(aData As Byte(), aOffset As Int32, aCount As Int32, aSpacer As String = Null, aBytesPerLine As Int32 = -1) As String
Parameters:
- aData:
- aOffset:
- aCount:
- aSpacer:
- aBytesPerLine:
class method ToHexString(aData: array of Byte; aSpacer: String := nil; aBytesPerLine: Int32 := -1): not nullable String
static String! ToHexString(Byte[] aData, String aSpacer = null, Int32 aBytesPerLine = -1)
static func ToHexString(_ aData: Byte..., _ aSpacer: String = nil, _ aBytesPerLine: Int32 = -1) -> String
static String ToHexString(Byte[] aData, String aSpacer, Integer aBytesPerLine)
Shared Function ToHexString(aData As Byte(), aSpacer As String = Null, aBytesPerLine As Int32 = -1) As String
Parameters:
- aData:
- aSpacer:
- aBytesPerLine:
ToHexString (ImmutableBinary, String, Int32): not nullable String
class method ToHexString(aData: ImmutableBinary; aSpacer: String := nil; aBytesPerLine: Int32 := -1): not nullable String
static String! ToHexString(ImmutableBinary aData, String aSpacer = null, Int32 aBytesPerLine = -1)
static func ToHexString(_ aData: ImmutableBinary, _ aSpacer: String = nil, _ aBytesPerLine: Int32 = -1) -> String
static String ToHexString(ImmutableBinary aData, String aSpacer, Integer aBytesPerLine)
Shared Function ToHexString(aData As ImmutableBinary, aSpacer As String = Null, aBytesPerLine As Int32 = -1) As String
Parameters:
- aData:
- aSpacer:
- aBytesPerLine:
Convert an uint64 to a hex string.
class method ToHexString(aValue: UInt64; aWidth: Int32 := 0): not nullable String
static String! ToHexString(UInt64 aValue, Int32 aWidth = 0)
static func ToHexString(_ aValue: UInt64, _ aWidth: Int32 = 0) -> String
static String ToHexString(UInt64 aValue, Integer aWidth)
Shared Function ToHexString(aValue As UInt64, aWidth As Int32 = 0) As String
Parameters:
- aValue:
- aWidth:
Convert a boolean to an integer.
class method ToInt32(aValue: Boolean): Int32
static Int32 ToInt32(Boolean aValue)
static func ToInt32(_ aValue: Boolean) -> Int32
static Integer ToInt32(Boolean aValue)
Shared Function ToInt32(aValue As Boolean) As Int32
Parameters:
- aValue:
Convert a char to an integer.
class method ToInt32(aValue: Char): Int32
static Int32 ToInt32(Char aValue)
static func ToInt32(_ aValue: Char) -> Int32
static Integer ToInt32(Char aValue)
Shared Function ToInt32(aValue As Char) As Int32
Parameters:
- aValue:
Convert a double to an integer.
class method ToInt32(aValue: Double): Int32
static Int32 ToInt32(Double aValue)
static func ToInt32(_ aValue: Double) -> Int32
static Integer ToInt32(Double aValue)
Shared Function ToInt32(aValue As Double) As Int32
Parameters:
- aValue:
Convert an int64 to an integer.
class method ToInt32(aValue: Int64): Int32
static Int32 ToInt32(Int64 aValue)
static func ToInt32(_ aValue: Int64) -> Int32
static Integer ToInt32(Int64 aValue)
Shared Function ToInt32(aValue As Int64) As Int32
Parameters:
- aValue:
Convert a string to an integer.
class method ToInt32(aValue: not nullable String): Int32
static Int32 ToInt32(String! aValue)
static func ToInt32(_ aValue: String) -> Int32
static Integer ToInt32(String aValue)
Shared Function ToInt32(aValue As String) As Int32
Parameters:
- aValue:
Convert a byte to an integer.
class method ToInt32(aValue: Byte): Int32
static Int32 ToInt32(Byte aValue)
static func ToInt32(_ aValue: Byte) -> Int32
static Integer ToInt32(Byte aValue)
Shared Function ToInt32(aValue As Byte) As Int32
Parameters:
- aValue:
Convert a boolean to an integer.
class method ToInt64(aValue: Boolean): Int64
static Int64 ToInt64(Boolean aValue)
static func ToInt64(_ aValue: Boolean) -> Int64
static Int64 ToInt64(Boolean aValue)
Shared Function ToInt64(aValue As Boolean) As Int64
Parameters:
- aValue:
Convert a char to an integer.
class method ToInt64(aValue: Char): Int64
static Int64 ToInt64(Char aValue)
static func ToInt64(_ aValue: Char) -> Int64
static Int64 ToInt64(Char aValue)
Shared Function ToInt64(aValue As Char) As Int64
Parameters:
- aValue:
Convert a double to an integer.
class method ToInt64(aValue: Double): Int64
static Int64 ToInt64(Double aValue)
static func ToInt64(_ aValue: Double) -> Int64
static Int64 ToInt64(Double aValue)
Shared Function ToInt64(aValue As Double) As Int64
Parameters:
- aValue:
Convert a int32 to an integer.
class method ToInt64(aValue: Int32): Int64
static Int64 ToInt64(Int32 aValue)
static func ToInt64(_ aValue: Int32) -> Int64
static Int64 ToInt64(Integer aValue)
Shared Function ToInt64(aValue As Int32) As Int64
Parameters:
- aValue:
Convert a string to an integer.
class method ToInt64(aValue: not nullable String): Int64
static Int64 ToInt64(String! aValue)
static func ToInt64(_ aValue: String) -> Int64
static Int64 ToInt64(String aValue)
Shared Function ToInt64(aValue As String) As Int64
Parameters:
- aValue:
Convert a byte to an integer.
class method ToInt64(aValue: Byte): Int64
static Int64 ToInt64(Byte aValue)
static func ToInt64(_ aValue: Byte) -> Int64
static Int64 ToInt64(Byte aValue)
Shared Function ToInt64(aValue As Byte) As Int64
Parameters:
- aValue:
ToOctalString
Convert an integer to it's octal equivalent as string.
class method ToOctalString(aValue: UInt64; aWidth: Int32 := 0): not nullable String
static String! ToOctalString(UInt64 aValue, Int32 aWidth = 0)
static func ToOctalString(_ aValue: UInt64, _ aWidth: Int32 = 0) -> String
static String ToOctalString(UInt64 aValue, Integer aWidth)
Shared Function ToOctalString(aValue As UInt64, aWidth As Int32 = 0) As String
Parameters:
- aValue:
- aWidth:
Convert a boolean to string.
class method ToString(aValue: Boolean): not nullable String
static String! ToString(Boolean aValue)
static func ToString(_ aValue: Boolean) -> String
static String ToString(Boolean aValue)
Shared Function ToString(aValue As Boolean) As String
Parameters:
- aValue:
Convert a char to string.
class method ToString(aValue: Char): not nullable String
static String! ToString(Char aValue)
static func ToString(_ aValue: Char) -> String
static String ToString(Char aValue)
Shared Function ToString(aValue As Char) As String
Parameters:
- aValue:
class method ToString(aValue: Double; aDigitsAfterDecimalPoint: Int32 := -1; aMinWidth: Int32 := 0; aLocale: Locale := nil): not nullable String
static String! ToString(Double aValue, Int32 aDigitsAfterDecimalPoint = -1, Int32 aMinWidth = 0, Locale aLocale = null)
static func ToString(_ aValue: Double, _ aDigitsAfterDecimalPoint: Int32 = -1, _ aMinWidth: Int32 = 0, _ aLocale: Locale = nil) -> String
static String ToString(Double aValue, Integer aDigitsAfterDecimalPoint, Integer aMinWidth, Locale aLocale)
Shared Function ToString(aValue As Double, aDigitsAfterDecimalPoint As Int32 = -1, aMinWidth As Int32 = 0, aLocale As Locale = Null) As String
Parameters:
- aValue:
- aDigitsAfterDecimalPoint:
- aMinWidth:
- aLocale:
Convert an int32 to string.
class method ToString(aValue: Int32; aBase: Int32 := 10): not nullable String
static String! ToString(Int32 aValue, Int32 aBase = 10)
static func ToString(_ aValue: Int32, _ aBase: Int32 = 10) -> String
static String ToString(Integer aValue, Integer aBase)
Shared Function ToString(aValue As Int32, aBase As Int32 = 10) As String
Parameters:
- aValue:
- aBase:
Convert an int64 to string.
class method ToString(aValue: Int64; aBase: Int32 := 10): not nullable String
static String! ToString(Int64 aValue, Int32 aBase = 10)
static func ToString(_ aValue: Int64, _ aBase: Int32 = 10) -> String
static String ToString(Int64 aValue, Integer aBase)
Shared Function ToString(aValue As Int64, aBase As Int32 = 10) As String
Parameters:
- aValue:
- aBase:
Convert an object to string.
class method ToString(aValue: Object): not nullable String
static String! ToString(Object aValue)
static func ToString(_ aValue: Object) -> String
static String ToString(Object aValue)
Shared Function ToString(aValue As Object) As String
Parameters:
- aValue:
ToString (UInt64, Int32): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
Convert an uint64 to string.
class method ToString(aValue: UInt64; aBase: Int32 := 10): not nullable String
static String! ToString(UInt64 aValue, Int32 aBase = 10)
static func ToString(_ aValue: UInt64, _ aBase: Int32 = 10) -> String
Shared Function ToString(aValue As UInt64, aBase As Int32 = 10) As String
Parameters:
- aValue:
- aBase:
Convert a byte to string.
class method ToString(aValue: Byte; aBase: Int32 := 10): not nullable String
static String! ToString(Byte aValue, Int32 aBase = 10)
static func ToString(_ aValue: Byte, _ aBase: Int32 = 10) -> String
static String ToString(Byte aValue, Integer aBase)
Shared Function ToString(aValue As Byte, aBase As Int32 = 10) As String
Parameters:
- aValue:
- aBase:
ToStringInvariant
class method ToStringInvariant(aValue: Double; aDigitsAfterDecimalPoint: Int32 := -1; aMinWidth: Int32 := 0): not nullable String
static String! ToStringInvariant(Double aValue, Int32 aDigitsAfterDecimalPoint = -1, Int32 aMinWidth = 0)
static func ToStringInvariant(_ aValue: Double, _ aDigitsAfterDecimalPoint: Int32 = -1, _ aMinWidth: Int32 = 0) -> String
static String ToStringInvariant(Double aValue, Integer aDigitsAfterDecimalPoint, Integer aMinWidth)
Shared Function ToStringInvariant(aValue As Double, aDigitsAfterDecimalPoint As Int32 = -1, aMinWidth As Int32 = 0) As String
Parameters:
- aValue:
- aDigitsAfterDecimalPoint:
- aMinWidth:
ToUtf8Bytes
Convert a string to a byte array, encoded as utf8
class method ToUtf8Bytes(aValue: not nullable String): array of Byte
static Byte[] ToUtf8Bytes(String! aValue)
static func ToUtf8Bytes(_ aValue: String) -> Byte...
static Byte[] ToUtf8Bytes(String aValue)
Shared Function ToUtf8Bytes(aValue As String) As Byte()
Parameters:
- aValue:
TryBinaryStringToUInt64
class method TryBinaryStringToUInt64(aValue: nullable String): nullable UInt64
static UInt64? TryBinaryStringToUInt64(String? aValue)
// Toffee
static func TryBinaryStringToUInt64(_ aValue: String) -> UInt64!
// ToffeeV2
static func TryBinaryStringToUInt64(_ aValue: String?) -> UInt64!
static UnsignedLong TryBinaryStringToUInt64(String aValue)
Shared Function TryBinaryStringToUInt64(aValue As String?) As UInt64?
Parameters:
- aValue:
TryHexStringToUInt32
Convert a hex string to uint32, and returns null on failure, instead of an exception.
class method TryHexStringToUInt32(aValue: not nullable String): nullable UInt32
static UInt32? TryHexStringToUInt32(String! aValue)
static func TryHexStringToUInt32(_ aValue: String) -> UInt32!
static UnsignedInteger TryHexStringToUInt32(String aValue)
Shared Function TryHexStringToUInt32(aValue As String) As UInt32?
Parameters:
- aValue:
TryHexStringToUInt64
Convert a hex string to uint64, and returns null on failure, instead of an exception.
class method TryHexStringToUInt64(aValue: not nullable String): nullable UInt64
static UInt64? TryHexStringToUInt64(String! aValue)
static func TryHexStringToUInt64(_ aValue: String) -> UInt64!
static UnsignedLong TryHexStringToUInt64(String aValue)
Shared Function TryHexStringToUInt64(aValue As String) As UInt64?
Parameters:
- aValue:
TryToDouble
Convert a string to double, and returns null on failure, instead of an exception.
// .NET, .NET Core 6.0, .NET Standard 2.0
class method TryToDouble(aValue: nullable String; aLocale: Locale := nil): nullable Double
// Island
class method TryToDouble(aValue: nullable String; aLocale: Locale): nullable Double
// .NET, .NET Core 6.0, .NET Standard 2.0
static Double? TryToDouble(String? aValue, Locale aLocale = null)
// Island
static Double? TryToDouble(String? aValue, Locale aLocale)
// Toffee
static func TryToDouble(_ aValue: String, _ aLocale: Locale) -> Double!
// ToffeeV2
static func TryToDouble(_ aValue: String?, _ aLocale: Locale) -> Double!
static Double TryToDouble(String aValue, Locale aLocale)
// .NET, .NET Core 6.0, .NET Standard 2.0
Shared Function TryToDouble(aValue As String?, aLocale As Locale = Null) As Double?
// Island
Shared Function TryToDouble(aValue As String?, aLocale As Locale) As Double?
Parameters:
- aValue:
- aLocale:
TryToDoubleInvariant
Convert a string to double in the invariant culture, and returns null on failure, instead of an exception.
class method TryToDoubleInvariant(aValue: nullable String): nullable Double
static Double? TryToDoubleInvariant(String? aValue)
// Toffee
static func TryToDoubleInvariant(_ aValue: String) -> Double!
// ToffeeV2
static func TryToDoubleInvariant(_ aValue: String?) -> Double!
static Double TryToDoubleInvariant(String aValue)
Shared Function TryToDoubleInvariant(aValue As String?) As Double?
Parameters:
- aValue:
TryToInt32
Convert a string to int32, and returns null on failure, instead of an exception.
class method TryToInt32(aValue: nullable String): nullable Int32
static Int32? TryToInt32(String? aValue)
// Toffee
static func TryToInt32(_ aValue: String) -> Int32!
// ToffeeV2
static func TryToInt32(_ aValue: String?) -> Int32!
static Integer TryToInt32(String aValue)
Shared Function TryToInt32(aValue As String?) As Int32?
Parameters:
- aValue:
TryToInt64
Convert a string to int64, and returns null on failure, instead of an exception.
class method TryToInt64(aValue: nullable String): nullable Int64
static Int64? TryToInt64(String? aValue)
// Toffee
static func TryToInt64(_ aValue: String) -> Int64!
// ToffeeV2
static func TryToInt64(_ aValue: String?) -> Int64!
static Long TryToInt64(String aValue)
Shared Function TryToInt64(aValue As String?) As Int64?
Parameters:
- aValue:
TryToIntPtr .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
class method TryToIntPtr(aValue: nullable String): nullable IntPtr
static IntPtr? TryToIntPtr(String? aValue)
// Toffee
static func TryToIntPtr(_ aValue: String) -> IntPtr!
// ToffeeV2
static func TryToIntPtr(_ aValue: String?) -> IntPtr!
Shared Function TryToIntPtr(aValue As String?) As IntPtr?
Parameters:
- aValue:
TryToUInt64
class method TryToUInt64(aValue: nullable String): nullable UInt64
static UInt64? TryToUInt64(String? aValue)
// Toffee
static func TryToUInt64(_ aValue: String) -> UInt64!
// ToffeeV2
static func TryToUInt64(_ aValue: String?) -> UInt64!
static UnsignedLong TryToUInt64(String aValue)
Shared Function TryToUInt64(aValue As String?) As UInt64?
Parameters:
- aValue:
TryToUIntPtr .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2
class method TryToUIntPtr(aValue: nullable String): nullable UIntPtr
static UIntPtr? TryToUIntPtr(String? aValue)
// Toffee
static func TryToUIntPtr(_ aValue: String) -> UIntPtr!
// ToffeeV2
static func TryToUIntPtr(_ aValue: String?) -> UIntPtr!
Shared Function TryToUIntPtr(aValue As String?) As UIntPtr?
Parameters:
- aValue:
Utf8BytesToString
Convert an utf8 byte array to a string, with an optionl length; if no length is given uses the length of the array itself.
class method Utf8BytesToString(aBytes: array of Byte; aLength: nullable Int32 := nil): String
static String Utf8BytesToString(Byte[] aBytes, Int32? aLength = null)
static func Utf8BytesToString(_ aBytes: Byte..., _ aLength: Int32! = nil) -> String
static String Utf8BytesToString(Byte[] aBytes, Integer aLength)
Shared Function Utf8BytesToString(aBytes As Byte(), aLength As Int32? = Null) As String
Parameters:
- aBytes:
- aLength: