UTF8String

org.scalajs.ir.UTF8String
See theUTF8String companion object
final class UTF8String extends AnyVal

An immutable UTF-8 string.

The contents of a UTF8String is guaranteed to be a well-formed UTF-8 string.

Attributes

Note

equals() and hashCode(), along with == and ##, are just as broken for UTF8String as for Arrays. Use the methods in the companion object instead. This is unavoidable because we cannot override equals nor hashCode in an AnyVal.

Companion
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def ++(that: UTF8String): UTF8String
def apply(i: Int): Byte

Returns the ith UTF-8 code unit of this string.

Returns the ith UTF-8 code unit of this string.

Attributes

def length: Int

Returns the length in UTF-8 code units of this string.

Returns the length in UTF-8 code units of this string.

Attributes

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any