Class TUnicodeCharSet

Unit

Declaration

type TUnicodeCharSet = class(TCardinalList)

Description

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

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).

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.

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

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

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 .


Generated by PasDoc 0.16.0-snapshot.