Class TUnicodeCharList

Unit

Declaration

type TUnicodeCharList = class(TCardinalList)

Description

This item has no description. Showing description inherited from TCardinalList.

List of Cardinal (unsigned) values.

In practice, Cardinal is always 32-bit signed now, but use this when you don't want to explicitly care about size, see https://castle-engine.io/coding_conventions#_do_not_use_longint_longword_use_int32_uint32_int64_uint64_integer_cardinal .

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