Class TUnicodeCharSet

Unit

Declaration

type TUnicodeCharSet = class(TCardinalList)

Description

Manage a set (without duplicates) of Unicode character codes.

Source: base/castleunicode.pas (line 32).

Hierarchy

Overview

Methods

Public procedure Add(const C: TUnicodeChar); reintroduce; overload;
Public procedure Add(const SampleText: string); overload;
Public procedure Add(const Characters: TSetOfChars); overload;
Public function ToString: String; override;

Description

Methods

Public procedure Add(const C: TUnicodeChar); reintroduce; overload;

Add a single Unicode character. Doesn't add duplicates (contrary to ancestor Add).

Source: base/castleunicode.pas (line 36).

Public procedure Add(const SampleText: string); overload;

Add all characters from SampleText. Useful to fill TUnicodeCharSet when you have a sample text of international letters. Doesn't add duplicates.

Source: base/castleunicode.pas (line 42).

Public procedure Add(const Characters: TSetOfChars); overload;

Add all characters from given set. Try e.g. SimpleAsciiCharacters. Doesn't add duplicates.

Source: base/castleunicode.pas (line 46).

Public function ToString: String; override;

Express all characters inside the set as one string.

The resulting String follows the encoding conventions used throughout CGE, which means it will be UTF-8 with FPC (AnsiString) or UTF-16 with Delphi (UnicodeString). See https://castle-engine.io/coding_conventions#strings_unicode .

Source: base/castleunicode.pas (line 54).


Generated by PasDoc 0.17.0.snapshot.