UTF8String

Overview

UTF8 string type; this type stores strings an an array of bytes.

Location

  • Reference: Island.fx
  • Namespace: RemObjects.Elements.System
  • Platforms: Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
  • Ancestry: ValueType | UTF8String

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

UTF8String()

 

init()

 

UTF8String()

constructor (array of Byte)

Creates a new instance of this class

 

constructor(aData: array of Byte)

 

UTF8String(Byte[] aData)

 

init(_ aData: Byte...)

 

UTF8String(Byte[] aData)

Parameters:

  • aData:

constructor (array of Byte, Int32)

Creates a new instance of this class

 

constructor(aData: array of Byte; aStart: Int32)

 

UTF8String(Byte[] aData, Int32 aStart)

 

init(_ aData: Byte..., _ aStart: Int32)

 

UTF8String(Byte[] aData, Int32 aStart)

Parameters:

  • aData:
  • aStart:

constructor (array of Byte, Int32, Int32)

Creates a new instance of this class

 

constructor(aData: array of Byte; aStart: Int32; aLength: Int32)

 

UTF8String(Byte[] aData, Int32 aStart, Int32 aLength)

 

init(_ aData: Byte..., _ aStart: Int32, _ aLength: Int32)

 

UTF8String(Byte[] aData, Int32 aStart, Int32 aLength)

Parameters:

  • aData:
  • aStart:
  • aLength:

Empty

Returns an empty Utf8 string

 

class property Empty: UTF8String read;

 

class UTF8String Empty { get; }

 

static var Empty: UTF8String { get{} }

 

class UTF8String Empty { __get; }

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

Item

Index accessor for this type. Uses indexing based on byte offset.

 

property Item[idx: Int32]: Byte read write;

 

Byte Item[Int32 idx] { get; set; }

 

subscript Item(_ idx: Int32) -> Byte { get{} set{} }

 

Byte Item[Int32 idx] { __get; __set; }

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

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

Substring (Int32): UTF8String

Returns a substring of this type. Uses indexing based on byte offset

 

method Substring(aStart: Int32): UTF8String

 

UTF8String Substring(Int32 aStart)

 

func Substring(_ aStart: Int32) -> UTF8String

 

UTF8String Substring(Int32 aStart)

Parameters:

  • aStart:

Substring (Int32, Int32): UTF8String

Returns a substring of this type. Uses indexing based on byte offset

 

method Substring(aStart: Int32; aLength: Int32): UTF8String

 

UTF8String Substring(Int32 aStart, Int32 aLength)

 

func Substring(_ aStart: Int32, _ aLength: Int32) -> UTF8String

 

UTF8String Substring(Int32 aStart, Int32 aLength)

Parameters:

  • aStart:
  • aLength:

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Item

Index accessor for this type. Uses indexing based on byte offset.

 

property Item[idx: Int32]: Byte read write;

 

Byte Item[Int32 idx] { get; set; }

 

subscript Item(_ idx: Int32) -> Byte { get{} set{} }

 

Byte Item[Int32 idx] { __get; __set; }

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

Empty

Returns an empty Utf8 string

 

class property Empty: UTF8String read;

 

class UTF8String Empty { get; }

 

static var Empty: UTF8String { get{} }

 

class UTF8String Empty { __get; }

 

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

 

UTF8String()

 

init()

 

UTF8String()

constructor (array of Byte)

Creates a new instance of this class

 

constructor(aData: array of Byte)

 

UTF8String(Byte[] aData)

 

init(_ aData: Byte...)

 

UTF8String(Byte[] aData)

Parameters:

  • aData:

constructor (array of Byte, Int32)

Creates a new instance of this class

 

constructor(aData: array of Byte; aStart: Int32)

 

UTF8String(Byte[] aData, Int32 aStart)

 

init(_ aData: Byte..., _ aStart: Int32)

 

UTF8String(Byte[] aData, Int32 aStart)

Parameters:

  • aData:
  • aStart:

constructor (array of Byte, Int32, Int32)

Creates a new instance of this class

 

constructor(aData: array of Byte; aStart: Int32; aLength: Int32)

 

UTF8String(Byte[] aData, Int32 aStart, Int32 aLength)

 

init(_ aData: Byte..., _ aStart: Int32, _ aLength: Int32)

 

UTF8String(Byte[] aData, Int32 aStart, Int32 aLength)

Parameters:

  • aData:
  • aStart:
  • aLength:

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

Substring (Int32): UTF8String

Returns a substring of this type. Uses indexing based on byte offset

 

method Substring(aStart: Int32): UTF8String

 

UTF8String Substring(Int32 aStart)

 

func Substring(_ aStart: Int32) -> UTF8String

 

UTF8String Substring(Int32 aStart)

Parameters:

  • aStart:

Substring (Int32, Int32): UTF8String

Returns a substring of this type. Uses indexing based on byte offset

 

method Substring(aStart: Int32; aLength: Int32): UTF8String

 

UTF8String Substring(Int32 aStart, Int32 aLength)

 

func Substring(_ aStart: Int32, _ aLength: Int32) -> UTF8String

 

UTF8String Substring(Int32 aStart, Int32 aLength)

Parameters:

  • aStart:
  • aLength:

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()