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
- TObject
- TStrBuilder
Overview
Fields
![]() |
buffer: pstring; |
Methods
![]() |
procedure init(abuffer:pstring; basecapacity: SizeInt = 64; aencoding: TSystemCodePage = CP_UTF8); |
![]() |
procedure clear; |
![]() |
procedure final; |
![]() |
function count: SizeInt; inline; |
![]() |
function isEmpty: boolean; inline; |
![]() |
procedure reserveadd(delta: SizeInt); |
![]() |
procedure append(c: char); inline; |
![]() |
procedure append(const s: RawByteString); |
![]() |
procedure appendCodePoint(const codepoint: integer); |
![]() |
procedure append(const p: pchar; const l: SizeInt); |
![]() |
procedure appendBuffer(const block; l: NativeInt); |
![]() |
procedure appendHexNumber(number: integer); |
![]() |
procedure appendHexNumber(number, digits: integer); |
![]() |
procedure appendNumber(number: Int64); |
![]() |
procedure appendBOM(codepage: TSystemCodePage); |
![]() |
procedure chop(removedCount: SizeInt); |
Description
Fields
![]() |
buffer: pstring; |
Methods
![]() |
procedure init(abuffer:pstring; basecapacity: SizeInt = 64; aencoding: TSystemCodePage = CP_UTF8); |
![]() |
procedure clear; |
![]() |
procedure final; |
![]() |
function count: SizeInt; inline; |
![]() |
function isEmpty: boolean; inline; |
![]() |
procedure reserveadd(delta: SizeInt); |
![]() |
procedure append(c: char); inline; |
![]() |
procedure append(const s: RawByteString); |
![]() |
procedure appendCodePoint(const codepoint: integer); |
![]() |
procedure append(const p: pchar; const l: SizeInt); |
![]() |
procedure appendBuffer(const block; l: NativeInt); |
![]() |
procedure appendHexNumber(number: integer); |
![]() |
procedure appendHexNumber(number, digits: integer); |
![]() |
procedure appendNumber(number: Int64); |
![]() |
procedure appendBOM(codepage: TSystemCodePage); |
![]() |
procedure chop(removedCount: SizeInt); |
Generated by PasDoc 0.16.0.