Char

Overview

16 bits character type; strings are made out of this.

Location

Implements

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Char()

 

init()

 

Char()

CompareTo (Char): Int32

compares this value to another char, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Char): Int32

 

Int32 CompareTo(Char a)

 

func CompareTo(_ a: Char) -> Int32

 

Int32 CompareTo(Char a)

Parameters:

  • a:

CompareTo (Object): Int32

compares this value to another char, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

Parameters:

  • a:

Equals (Char): Boolean

Compares this value to another, returns true if equal.

 

method Equals(other: Char): Boolean

 

Boolean Equals(Char other)

 

func Equals(_ other: Char) -> Boolean

 

Boolean Equals(Char other)

Parameters:

  • other:

Equals (Object): Boolean  override virtual

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  override virtual

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

IsNumber

Check if a value is a number character.

 

class method IsNumber(aChar: Char): Boolean

 

static Boolean IsNumber(Char aChar)

 

static func IsNumber(_ aChar: Char) -> Boolean

 

static Boolean IsNumber(Char aChar)

Parameters:

  • aChar:

IsWhiteSpace

Check if a value is a whitespace character.

 

class method IsWhiteSpace(aChar: Char): Boolean

 

static Boolean IsWhiteSpace(Char aChar)

 

static func IsWhiteSpace(_ aChar: Char) -> Boolean

 

static Boolean IsWhiteSpace(Char aChar)

Parameters:

  • aChar:

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

ToLower

Lowercase this value.

 

method ToLower(aInvariant: Boolean): Char

 

Char ToLower(Boolean aInvariant)

 

func ToLower(_ aInvariant: Boolean) -> Char

 

Char ToLower(Boolean aInvariant)

Parameters:

  • aInvariant:

ToString  override virtual

Converts this char to it's string representation.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToUpper

Uppercase this value.

 

method ToUpper(aInvariant: Boolean): Char

 

Char ToUpper(Boolean aInvariant)

 

func ToUpper(_ aInvariant: Boolean) -> Char

 

Char ToUpper(Boolean aInvariant)

Parameters:

  • aInvariant:

 

IsNumber

Check if a value is a number character.

 

class method IsNumber(aChar: Char): Boolean

 

static Boolean IsNumber(Char aChar)

 

static func IsNumber(_ aChar: Char) -> Boolean

 

static Boolean IsNumber(Char aChar)

Parameters:

  • aChar:

IsWhiteSpace

Check if a value is a whitespace character.

 

class method IsWhiteSpace(aChar: Char): Boolean

 

static Boolean IsWhiteSpace(Char aChar)

 

static func IsWhiteSpace(_ aChar: Char) -> Boolean

 

static Boolean IsWhiteSpace(Char aChar)

Parameters:

  • aChar:

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

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Char()

 

init()

 

Char()

CompareTo (Char): Int32

compares this value to another char, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Char): Int32

 

Int32 CompareTo(Char a)

 

func CompareTo(_ a: Char) -> Int32

 

Int32 CompareTo(Char a)

Parameters:

  • a:

CompareTo (Object): Int32

compares this value to another char, returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

Parameters:

  • a:

Equals (Char): Boolean

Compares this value to another, returns true if equal.

 

method Equals(other: Char): Boolean

 

Boolean Equals(Char other)

 

func Equals(_ other: Char) -> Boolean

 

Boolean Equals(Char other)

Parameters:

  • other:

Equals (Object): Boolean  override virtual

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  override virtual

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

ToLower

Lowercase this value.

 

method ToLower(aInvariant: Boolean): Char

 

Char ToLower(Boolean aInvariant)

 

func ToLower(_ aInvariant: Boolean) -> Char

 

Char ToLower(Boolean aInvariant)

Parameters:

  • aInvariant:

ToString  override virtual

Converts this char to it's string representation.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToUpper

Uppercase this value.

 

method ToUpper(aInvariant: Boolean): Char

 

Char ToUpper(Boolean aInvariant)

 

func ToUpper(_ aInvariant: Boolean) -> Char

 

Char ToUpper(Boolean aInvariant)

Parameters:

  • aInvariant: