Convert
Overview
Utility class to convert to/from Strings.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
constructor protected
constructor
Convert()
init()
Convert()
Sub New()
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
HexStringToUInt64
Converts a hexadecimal string (Without any prefix) to an uint64.
Parameters:
- s: The string to convert.
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ToBoolean
Converts an object to boolean, or throws on failure.
Parameters:
- o:
ToByte
Converts an object to Byte, or throws on failure.
Parameters:
- o:
ToDouble
Converts an object to Double, or throws on failure.
Parameters:
- o:
ToInt16
Converts an object to Int16, or throws on failure.
Parameters:
- o:
ToInt32
Converts an object to Int32, or throws on failure.
Parameters:
- o:
ToInt64
Converts an object to Int64, or throws on failure.
Parameters:
- o:
ToSByte
Converts an object to sbyte, or throws on failure.
Parameters:
- o:
ToSingle
Converts an object to single, or throws on failure.
Parameters:
- o:
ToString virtual (declared in Object)
Gets the string representation of this method.
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
ToUInt16
Converts an object to uint16, or throws on failure.
Parameters:
- o:
ToUInt32
Converts an object to uint32, or throws on failure.
Parameters:
- o:
ToUInt64
Converts an object to uint64, or throws on failure.
Parameters:
- o:
TryHexStringToUInt64
Converts a hex string to an uint64.
Parameters:
- s:
- Value:
Tries to parse a string as a double, returns false on failure.
class method TryParseDouble(s: String; aLocale: Locale; out Value: Double; aRaiseOverflowException: Boolean): Boolean
static Boolean TryParseDouble(String s, Locale aLocale, out Double Value, Boolean aRaiseOverflowException)
static func TryParseDouble(_ s: String, _ aLocale: Locale, _ Value: Double, _ aRaiseOverflowException: Boolean) -> Boolean
Parameters:
- s:
- aLocale:
- Value:
- aRaiseOverflowException:
Tries to parse a string as a double, returns false on failure.
class method TryParseDouble(s: String; out Value: Double; aRaiseOverflowException: Boolean): Boolean
Parameters:
- s:
- Value:
- aRaiseOverflowException:
TryParseInt64
try parsing a string to int64.
Parameters:
- s: The string to convert.
- Value: output value.
- aRaiseOverflowException: If true, throws if the value is larger than fits int64.
TryParseUInt64
try parsing a string to uint64.
class method TryParseUInt64(s: String; out Value: UInt64; aRaiseOverflowException: Boolean): Boolean
Parameters:
- s: The string to convert.
- Value: output value.
- aRaiseOverflowException: If true, throws if the value is larger than fits uint64.
UInt64ToHexString
Converts a uint64 to hex with at least aDigits nr of digits.
Parameters:
- v: The number to convert.
- aDigits: The number of digits to at least emit.
HexStringToUInt64
Converts a hexadecimal string (Without any prefix) to an uint64.
Parameters:
- s: The string to convert.
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ToBoolean
Converts an object to boolean, or throws on failure.
Parameters:
- o:
ToByte
Converts an object to Byte, or throws on failure.
Parameters:
- o:
ToDouble
Converts an object to Double, or throws on failure.
Parameters:
- o:
ToInt16
Converts an object to Int16, or throws on failure.
Parameters:
- o:
ToInt32
Converts an object to Int32, or throws on failure.
Parameters:
- o:
ToInt64
Converts an object to Int64, or throws on failure.
Parameters:
- o:
ToSByte
Converts an object to sbyte, or throws on failure.
Parameters:
- o:
ToSingle
Converts an object to single, or throws on failure.
Parameters:
- o:
ToUInt16
Converts an object to uint16, or throws on failure.
Parameters:
- o:
ToUInt32
Converts an object to uint32, or throws on failure.
Parameters:
- o:
ToUInt64
Converts an object to uint64, or throws on failure.
Parameters:
- o:
TryHexStringToUInt64
Converts a hex string to an uint64.
Parameters:
- s:
- Value:
Tries to parse a string as a double, returns false on failure.
class method TryParseDouble(s: String; aLocale: Locale; out Value: Double; aRaiseOverflowException: Boolean): Boolean
static Boolean TryParseDouble(String s, Locale aLocale, out Double Value, Boolean aRaiseOverflowException)
static func TryParseDouble(_ s: String, _ aLocale: Locale, _ Value: Double, _ aRaiseOverflowException: Boolean) -> Boolean
Parameters:
- s:
- aLocale:
- Value:
- aRaiseOverflowException:
Tries to parse a string as a double, returns false on failure.
class method TryParseDouble(s: String; out Value: Double; aRaiseOverflowException: Boolean): Boolean
Parameters:
- s:
- Value:
- aRaiseOverflowException:
TryParseInt64
try parsing a string to int64.
Parameters:
- s: The string to convert.
- Value: output value.
- aRaiseOverflowException: If true, throws if the value is larger than fits int64.
TryParseUInt64
try parsing a string to uint64.
class method TryParseUInt64(s: String; out Value: UInt64; aRaiseOverflowException: Boolean): Boolean
Parameters:
- s: The string to convert.
- Value: output value.
- aRaiseOverflowException: If true, throws if the value is larger than fits uint64.
UInt64ToHexString
Converts a uint64 to hex with at least aDigits nr of digits.
Parameters:
- v: The number to convert.
- aDigits: The number of digits to at least emit.
constructor protected
constructor
Convert()
init()
Convert()
Sub New()
Equals virtual (declared in Object)
Default constructor.
Parameters:
- aOther: the reference to compare this with.
Finalize protected virtual (declared in Object)
method Finalize
void Finalize()
func Finalize()
void Finalize()
Sub Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
method GetHashCode: Int32
Int32 GetHashCode()
func GetHashCode() -> Int32
Int32 GetHashCode()
Function GetHashCode() As Int32
GetType (declared in Object)
Returns the actual type of this class
method GetType: Type
Type GetType()
func GetType() -> Type
Type GetType()
Function GetType() As Type
ToString virtual (declared in Object)
Gets the string representation of this method.