Object TStrBuilder

Unit

Declaration

type TStrBuilder = object(TObject)

Description

String builder to create strings

It is faster than the FPC string builder, because it is on the stack.

You create it by calling init on a string in which the output is written. You must call final before accessing the string again. Preliminary. Interface might change at any time. It might be turned into a managed record.

Hierarchy

Overview

Fields

Public buffer: pstring;

Methods

Public procedure init(abuffer:pstring; basecapacity: SizeInt = 64; aencoding: TSystemCodePage = CP_UTF8);
Public procedure clear;
Public procedure final;
Public function count: SizeInt; inline;
Public function isEmpty: boolean; inline;
Public procedure reserveadd(delta: SizeInt);
Public procedure append(c: char); inline;
Public procedure append(const s: RawByteString);
Public procedure appendCodePoint(const codepoint: integer);
Public procedure append(const p: pchar; const l: SizeInt);
Public procedure appendBuffer(const block; l: NativeInt);
Public procedure appendHexNumber(number: integer);
Public procedure appendHexNumber(number, digits: integer);
Public procedure appendNumber(number: Int64);
Public procedure appendBOM(codepage: TSystemCodePage);
Public procedure chop(removedCount: SizeInt);

Description

Fields

Public buffer: pstring;
 

Methods

Public procedure init(abuffer:pstring; basecapacity: SizeInt = 64; aencoding: TSystemCodePage = CP_UTF8);
 
Public procedure clear;
 
Public procedure final;
 
Public function count: SizeInt; inline;
 
Public function isEmpty: boolean; inline;
 
Public procedure reserveadd(delta: SizeInt);
 
Public procedure append(c: char); inline;
 
Public procedure append(const s: RawByteString);
 
Public procedure appendCodePoint(const codepoint: integer);
 
Public procedure append(const p: pchar; const l: SizeInt);
 
Public procedure appendBuffer(const block; l: NativeInt);
 
Public procedure appendHexNumber(number: integer);
 
Public procedure appendHexNumber(number, digits: integer);
 
Public procedure appendNumber(number: Int64);
 
Public procedure appendBOM(codepage: TSystemCodePage);
 
Public procedure chop(removedCount: SizeInt);
 

Generated by PasDoc 0.16.0.