Sign in Join
FPDoc Onlineexperiment

TUnicodeCharacterEnumerator class

In unit LazUnicode

Implements an enumerator for Unicode codepoints.

Declaration

pascal
TUnicodeCharacterEnumerator = class(TUnicodeEnumeratorBase)

Inheritance

  1. TUnicodeCharacterEnumerator
  2. TUnicodeEnumeratorBase

Description

Implements an enumerator for Unicode codepoints. TUnicodeCharacterEnumerator allows traversal of characters (codepoints) in a Unicode-encoded string. Values use either UTF-16 or UTF-8 encoding depending on the value for $ModeSwitch. An overridden MoveNext method is provided to handle combining diacritical marks in the Unicode codepoints.

Properties

CurrentCodePointCountpublicNumber of bytes used for the Current codepoint.

Methods

MoveNextpublicAdds support for combining diacritical marks when moving to the next codepoint.

Inherited

From TUnicodeEnumeratorBase (3)

Create Current CurrentCodeUnitCount

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.