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

 

constructor

 

UTF8String()

 

init()

 

UTF8String()

 

Sub New()

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)

 

Sub New(aData As Byte())

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)

 

Sub New(aData As Byte(), aStart As Int32)

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)

 

Sub New(aData As Byte(), aStart As Int32, aLength As Int32)

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; }

 

Shared ReadOnly Property Empty() As UTF8String

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)

 

Function Equals(obj As Object) As Boolean

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

 

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

 

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

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; }

 

Property Item(idx As Int32) As Byte

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

 

ReadOnly Property Length() As Int32

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)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

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)

 

Function Substring(aStart As Int32) As UTF8String

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)

 

Function Substring(aStart As Int32, aLength As Int32) As UTF8String

Parameters:

  • aStart:
  • aLength:

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

 

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; }

 

Property Item(idx As Int32) As Byte

Length

Returns the length of this string.

 

property Length: Int32 read;

 

Int32 Length { get; }

 

var Length: Int32 { get{} }

 

Int32 Length { __get; }

 

ReadOnly Property Length() As Int32

Empty

Returns an empty Utf8 string

 

class property Empty: UTF8String read;

 

class UTF8String Empty { get; }

 

static var Empty: UTF8String { get{} }

 

class UTF8String Empty { __get; }

 

Shared ReadOnly Property Empty() As UTF8String

 

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)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

 

constructor

 

constructor

 

UTF8String()

 

init()

 

UTF8String()

 

Sub New()

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)

 

Sub New(aData As Byte())

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)

 

Sub New(aData As Byte(), aStart As Int32)

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)

 

Sub New(aData As Byte(), aStart As Int32, aLength As Int32)

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)

 

Function Equals(obj As Object) As Boolean

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

 

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

 

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

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)

 

Function Substring(aStart As Int32) As UTF8String

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)

 

Function Substring(aStart As Int32, aLength As Int32) As UTF8String

Parameters:

  • aStart:
  • aLength:

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String