[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazUnicode' (#lazutils)

TUnicodeCharacterEnumerator

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements an enumerator for Unicode codepoints.

Declaration

Source position: lazunicode.pas line 87

type TUnicodeCharacterEnumerator = class(TUnicodeEnumeratorBase)

public

  property CurrentCodePointCount: Integer; [r]

  

Number of bytes used for the Current codepoint.

  function MoveNext;

  

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

end;

Inheritance

TUnicodeCharacterEnumerator

  

Implements an enumerator for Unicode codepoints.

|

TUnicodeEnumeratorBase

  

Base class for a Unicode character enumerator.

|

TObject

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.


Version 4.0 Generated 2025-05-03 Home