class · System

StringBuilder

public class System.StringBuilder : System.Any
Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
StringBuilder.ant

Herencia

Clases base
Any StringBuilder

Constructores

constructor StringBuilder()
#
constructor StringBuilder(capacity: i32)
#

Propiedades

property Length: i32
#

read-only

How many bytes it holds.

Métodos

method Append(text: System.String<u8>) -> System.StringBuilder
#

Adds the text.

method Append(text: System.String<u8>, start: i32, count: i32) -> System.StringBuilder
#

Adds count bytes of the text from start.

method Append(unit: u16) -> System.StringBuilder
#

Adds one character (a UTF-16 code unit, as character literals are), in UTF-8.

method AppendCodePoint(point: u32) -> System.StringBuilder
#

Adds one code point in UTF-8.

method Append(value: i64) -> System.StringBuilder
#

Adds the number as text (written straight into the buffer).

method AppendLine(text: System.String<u8>) -> System.StringBuilder
#

Adds the text and a line break.

method Clear() -> void
#
method Bytes() -> u8[]
#

The buffer itself (its first Length bytes are the text; shared, not copied).

method ToString() -> System.String<u8>
#

override

Miembros privados e internos (4)

field buffer: u8[]
#

private

field length: i32
#

private

method Reserve(more: i32) -> void
#

private

method Grow(more: i32) -> void
#

private

Miembros heredados (4)

Código fuente

StringBuilder en Larva HIR, descompilado a partir de su Larva HIR.

System.StringBuilder.hir
public class System.StringBuilder : System.Any
{
    field buffer: u8[]
    field length: i32
    method Reserve(more: i32) -> void
    method Grow(more: i32) -> void
    constructor StringBuilder()
    constructor StringBuilder(capacity: i32)
    // Adds the text.
    method Append(text: System.String<u8>) -> System.StringBuilder
    // Adds `count` bytes of the text from `start`.
    method Append(text: System.String<u8>, start: i32, count: i32) -> System.StringBuilder
    // Adds one character (a UTF-16 code unit, as character literals are), in UTF-8.
    method Append(unit: u16) -> System.StringBuilder
    // Adds one code point in UTF-8.
    method AppendCodePoint(point: u32) -> System.StringBuilder
    // Adds the number as text (written straight into the buffer).
    method Append(value: i64) -> System.StringBuilder
    // Adds the text and a line break.
    method AppendLine(text: System.String<u8>) -> System.StringBuilder
    method Clear() -> void
    // The buffer itself (its first Length bytes are the text; shared, not copied).
    method Bytes() -> u8[]
    method ToString() -> System.String<u8>
    // How many bytes it holds.
    property Length: i32
}
Esc