std.strbuf [core] std.strbuf.StrBuf pub struct StrBuf { bytes: List[byte], } — The builder: an owned, growable string. std.strbuf.new pub fn new() -> StrBuf — A fresh empty builder in the ambient region (D10: no region argument, no annotation). std.strbuf.len pub fn len(b: StrBuf) -> int — The length of the buffer's contents in BYTES — the same honest unit as str.len (D25: byte offsets are the one currency). std.strbuf.push_str pub fn push_str(mut b: StrBuf, s: str) — Appends s to the end of the buffer. std.strbuf.push pub fn push(mut b: StrBuf, c: char) — Appends one code point — the sc03 contract's push(c), code at last (sc24), over D58's char ([type.char]: a Unicode scalar value, ordered, NOT an integer). std.strbuf.insert pub fn insert(mut b: StrBuf, off: int, s: str) — Inserts s at byte offset off, shifting everything at or after off to the right. std.strbuf.remove pub fn remove(mut b: StrBuf, from: int, to: int) — Removes the bytes in [from, to), closing the gap. std.strbuf.truncate pub fn truncate(mut b: StrBuf, n: int) — Shortens the buffer to n bytes, dropping everything after. std.strbuf.clear pub fn clear(mut b: StrBuf) — Empties the buffer, keeping it usable. std.strbuf.to_str pub fn to_str(b: StrBuf) -> str — The buffer's contents as a str.