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

CodePointLength

Gets the number of codepoints in the specified string.

Declaration

Source position: lazunicode.pas line 45

function CodePointLength(

  const s: string

):NativeInt;

Arguments

s

  

UTF-encoded values examined in the function.

Function result

Number of codepoints in the string.

Description

Gets the number of codepoints in the specified string. For platforms that require UTF-16, UTF16Length is called to get the return value for the function. For other platforms, UTF8LengthFast is called to get the number of codepoints.


Version 4.0 Generated 2025-05-03 Home