[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

StrCharLength

Return the length of a null-terminated string in characters.

Declaration

Source position: sysstrh.inc line 238

function StrCharLength(

  const Str: PChar

):Integer;

Description

StrCharLength returns the length of the null-terminated string Str (a widestring) in characters (not in bytes). It uses the widestring manager to do this.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.