StringBuilder


Object Hierarchy:

Object hierarchy for StringBuilder

Description:

public class StringBuilder : Object

StringBuilder is a mutable string buffer for efficient string construction. It wraps GLib.StringBuilder and provides a rich, Java/C#- inspired API.

Unlike regular string concatenation which creates a new string each time, StringBuilder modifies an internal buffer, making it much more efficient for building strings incrementally.

Example:

    var sb = new StringBuilder ();
sb.append ("Hello");
sb.append (", ");
sb.append ("World!");
assert (sb.toString () == "Hello, World!");


Namespace: Vala.Io
Package: Valacore

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object