System.AnsiStrings.StrCharLength
Delphi
function StrCharLength(const Str: MarshaledAString): Integer;
C++
extern DELPHI_PACKAGE int __fastcall StrCharLength(const char * Str)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Returns the length, in bytes, of a character.
StrCharLength returns the size, in bytes, of the first character in Str. This value can be 1 or 2 on Windows, and 1 to 6 on MacOS.