UTF8String

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

constructor  protected    (declared in ValueType)


constructor (array of Byte)

Creates a new instance of this class

constructor(aData: array of Byte)

Parameters:

  • aData:

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:

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)

Default constructor.

method Equals(aOther: Object): Boolean
Boolean Equals(Object aOther)
func Equals(_ aOther: Object) -> Boolean
Boolean Equals(Object aOther)
Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)


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
func GetHashCode() -> Int32
Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

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;
var Length: Int32 { 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

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:

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.

func ToString() -> String
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;
var Length: Int32 { 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  protected    (declared in ValueType)


constructor (array of Byte)

Creates a new instance of this class

constructor(aData: array of Byte)

Parameters:

  • aData:

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:

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)

Default constructor.

method Equals(aOther: Object): Boolean
Boolean Equals(Object aOther)
func Equals(_ aOther: Object) -> Boolean
Boolean Equals(Object aOther)
Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)


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
func GetHashCode() -> Int32
Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

Function GetType() As Type

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:

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.

func ToString() -> String
Function ToString() As String