Convert

Overview

Utility class to convert to/from Strings.

Location

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Convert()

 

init()

 

Convert()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void 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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

HexStringToUInt64

Converts a hexadecimal string (Without any prefix) to an uint64.

 

class method HexStringToUInt64(s: String): UInt64

 

static UInt64 HexStringToUInt64(String s)

 

static func HexStringToUInt64(_ s: String) -> UInt64

 

static UInt64 HexStringToUInt64(String s)

Parameters:

  • s: The string to convert.

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

ToBoolean

 

class method ToBoolean(o: Object): Boolean

 

static Boolean ToBoolean(Object o)

 

static func ToBoolean(_ o: Object) -> Boolean

 

static Boolean ToBoolean(Object o)

Parameters:

  • o:

ToByte

 

class method ToByte(o: Object): Byte

 

static Byte ToByte(Object o)

 

static func ToByte(_ o: Object) -> Byte

 

static Byte ToByte(Object o)

Parameters:

  • o:

ToDouble

 

class method ToDouble(o: Object): Double

 

static Double ToDouble(Object o)

 

static func ToDouble(_ o: Object) -> Double

 

static Double ToDouble(Object o)

Parameters:

  • o:

ToInt16

 

class method ToInt16(o: Object): Int16

 

static Int16 ToInt16(Object o)

 

static func ToInt16(_ o: Object) -> Int16

 

static Int16 ToInt16(Object o)

Parameters:

  • o:

ToInt32

 

class method ToInt32(o: Object): Int32

 

static Int32 ToInt32(Object o)

 

static func ToInt32(_ o: Object) -> Int32

 

static Int32 ToInt32(Object o)

Parameters:

  • o:

ToInt64

 

class method ToInt64(o: Object): Int64

 

static Int64 ToInt64(Object o)

 

static func ToInt64(_ o: Object) -> Int64

 

static Int64 ToInt64(Object o)

Parameters:

  • o:

ToSByte

 

class method ToSByte(o: Object): SByte

 

static SByte ToSByte(Object o)

 

static func ToSByte(_ o: Object) -> SByte

 

static SByte ToSByte(Object o)

Parameters:

  • o:

ToSingle

 

class method ToSingle(o: Object): Single

 

static Single ToSingle(Object o)

 

static func ToSingle(_ o: Object) -> Single

 

static Single ToSingle(Object o)

Parameters:

  • o:

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToUInt16

 

class method ToUInt16(o: Object): UInt16

 

static UInt16 ToUInt16(Object o)

 

static func ToUInt16(_ o: Object) -> UInt16

 

static UInt16 ToUInt16(Object o)

Parameters:

  • o:

ToUInt32

 

class method ToUInt32(o: Object): UInt32

 

static UInt32 ToUInt32(Object o)

 

static func ToUInt32(_ o: Object) -> UInt32

 

static UInt32 ToUInt32(Object o)

Parameters:

  • o:

ToUInt64

 

class method ToUInt64(o: Object): UInt64

 

static UInt64 ToUInt64(Object o)

 

static func ToUInt64(_ o: Object) -> UInt64

 

static UInt64 ToUInt64(Object o)

Parameters:

  • o:

TryHexStringToUInt64

 

class method TryHexStringToUInt64(s: String; out Value: UInt64): Boolean

 

static Boolean TryHexStringToUInt64(String s, out UInt64 Value)

 

static func TryHexStringToUInt64(_ s: String, _ Value: UInt64) -> Boolean

 

static Boolean TryHexStringToUInt64(String s, __out UInt64 Value)

Parameters:

  • s:
  • Value:

TryParseDouble (String, Double, Boolean): Boolean

 

class method TryParseDouble(s: String; out Value: Double; aRaiseOverflowException: Boolean): Boolean

 

static Boolean TryParseDouble(String s, out Double Value, Boolean aRaiseOverflowException)

 

static func TryParseDouble(_ s: String, _ Value: Double, _ aRaiseOverflowException: Boolean) -> Boolean

 

static Boolean TryParseDouble(String s, __out Double Value, Boolean aRaiseOverflowException)

Parameters:

  • s:
  • Value:
  • aRaiseOverflowException:

TryParseDouble (String, Locale, Double, Boolean): Boolean

 

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

 

static Boolean TryParseDouble(String s, Locale aLocale, __out Double Value, Boolean aRaiseOverflowException)

Parameters:

  • s:
  • aLocale:
  • Value:
  • aRaiseOverflowException:

TryParseInt64

try parsing a string to int64.

 

class method TryParseInt64(s: String; out Value: Int64; aRaiseOverflowException: Boolean): Boolean

 

static Boolean TryParseInt64(String s, out Int64 Value, Boolean aRaiseOverflowException)

 

static func TryParseInt64(_ s: String, _ Value: Int64, _ aRaiseOverflowException: Boolean) -> Boolean

 

static Boolean TryParseInt64(String s, __out Int64 Value, Boolean aRaiseOverflowException)

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

 

static Boolean TryParseUInt64(String s, out UInt64 Value, Boolean aRaiseOverflowException)

 

static func TryParseUInt64(_ s: String, _ Value: UInt64, _ aRaiseOverflowException: Boolean) -> Boolean

 

static Boolean TryParseUInt64(String s, __out UInt64 Value, Boolean aRaiseOverflowException)

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.

 

class method UInt64ToHexString(v: UInt64; aDigits: Int32): String

 

static String UInt64ToHexString(UInt64 v, Int32 aDigits)

 

static func UInt64ToHexString(_ v: UInt64, _ aDigits: Int32) -> String

 

static String UInt64ToHexString(UInt64 v, Int32 aDigits)

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.

 

class method HexStringToUInt64(s: String): UInt64

 

static UInt64 HexStringToUInt64(String s)

 

static func HexStringToUInt64(_ s: String) -> UInt64

 

static UInt64 HexStringToUInt64(String s)

Parameters:

  • s: The string to convert.

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

ToBoolean

 

class method ToBoolean(o: Object): Boolean

 

static Boolean ToBoolean(Object o)

 

static func ToBoolean(_ o: Object) -> Boolean

 

static Boolean ToBoolean(Object o)

Parameters:

  • o:

ToByte

 

class method ToByte(o: Object): Byte

 

static Byte ToByte(Object o)

 

static func ToByte(_ o: Object) -> Byte

 

static Byte ToByte(Object o)

Parameters:

  • o:

ToDouble

 

class method ToDouble(o: Object): Double

 

static Double ToDouble(Object o)

 

static func ToDouble(_ o: Object) -> Double

 

static Double ToDouble(Object o)

Parameters:

  • o:

ToInt16

 

class method ToInt16(o: Object): Int16

 

static Int16 ToInt16(Object o)

 

static func ToInt16(_ o: Object) -> Int16

 

static Int16 ToInt16(Object o)

Parameters:

  • o:

ToInt32

 

class method ToInt32(o: Object): Int32

 

static Int32 ToInt32(Object o)

 

static func ToInt32(_ o: Object) -> Int32

 

static Int32 ToInt32(Object o)

Parameters:

  • o:

ToInt64

 

class method ToInt64(o: Object): Int64

 

static Int64 ToInt64(Object o)

 

static func ToInt64(_ o: Object) -> Int64

 

static Int64 ToInt64(Object o)

Parameters:

  • o:

ToSByte

 

class method ToSByte(o: Object): SByte

 

static SByte ToSByte(Object o)

 

static func ToSByte(_ o: Object) -> SByte

 

static SByte ToSByte(Object o)

Parameters:

  • o:

ToSingle

 

class method ToSingle(o: Object): Single

 

static Single ToSingle(Object o)

 

static func ToSingle(_ o: Object) -> Single

 

static Single ToSingle(Object o)

Parameters:

  • o:

ToUInt16

 

class method ToUInt16(o: Object): UInt16

 

static UInt16 ToUInt16(Object o)

 

static func ToUInt16(_ o: Object) -> UInt16

 

static UInt16 ToUInt16(Object o)

Parameters:

  • o:

ToUInt32

 

class method ToUInt32(o: Object): UInt32

 

static UInt32 ToUInt32(Object o)

 

static func ToUInt32(_ o: Object) -> UInt32

 

static UInt32 ToUInt32(Object o)

Parameters:

  • o:

ToUInt64

 

class method ToUInt64(o: Object): UInt64

 

static UInt64 ToUInt64(Object o)

 

static func ToUInt64(_ o: Object) -> UInt64

 

static UInt64 ToUInt64(Object o)

Parameters:

  • o:

TryHexStringToUInt64

 

class method TryHexStringToUInt64(s: String; out Value: UInt64): Boolean

 

static Boolean TryHexStringToUInt64(String s, out UInt64 Value)

 

static func TryHexStringToUInt64(_ s: String, _ Value: UInt64) -> Boolean

 

static Boolean TryHexStringToUInt64(String s, __out UInt64 Value)

Parameters:

  • s:
  • Value:

TryParseDouble (String, Double, Boolean): Boolean

 

class method TryParseDouble(s: String; out Value: Double; aRaiseOverflowException: Boolean): Boolean

 

static Boolean TryParseDouble(String s, out Double Value, Boolean aRaiseOverflowException)

 

static func TryParseDouble(_ s: String, _ Value: Double, _ aRaiseOverflowException: Boolean) -> Boolean

 

static Boolean TryParseDouble(String s, __out Double Value, Boolean aRaiseOverflowException)

Parameters:

  • s:
  • Value:
  • aRaiseOverflowException:

TryParseDouble (String, Locale, Double, Boolean): Boolean

 

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

 

static Boolean TryParseDouble(String s, Locale aLocale, __out Double Value, Boolean aRaiseOverflowException)

Parameters:

  • s:
  • aLocale:
  • Value:
  • aRaiseOverflowException:

TryParseInt64

try parsing a string to int64.

 

class method TryParseInt64(s: String; out Value: Int64; aRaiseOverflowException: Boolean): Boolean

 

static Boolean TryParseInt64(String s, out Int64 Value, Boolean aRaiseOverflowException)

 

static func TryParseInt64(_ s: String, _ Value: Int64, _ aRaiseOverflowException: Boolean) -> Boolean

 

static Boolean TryParseInt64(String s, __out Int64 Value, Boolean aRaiseOverflowException)

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

 

static Boolean TryParseUInt64(String s, out UInt64 Value, Boolean aRaiseOverflowException)

 

static func TryParseUInt64(_ s: String, _ Value: UInt64, _ aRaiseOverflowException: Boolean) -> Boolean

 

static Boolean TryParseUInt64(String s, __out UInt64 Value, Boolean aRaiseOverflowException)

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.

 

class method UInt64ToHexString(v: UInt64; aDigits: Int32): String

 

static String UInt64ToHexString(UInt64 v, Int32 aDigits)

 

static func UInt64ToHexString(_ v: UInt64, _ aDigits: Int32) -> String

 

static String UInt64ToHexString(UInt64 v, Int32 aDigits)

Parameters:

  • v: The number to convert.
  • aDigits: The number of digits to at least emit.

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Convert()

 

init()

 

Convert()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void 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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()