System.SysUtils.StrLen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrLen(const Str: MarshaledAString): Cardinal; overload;
function StrLen(const Str: PWideChar): Cardinal;

C++

extern DELPHI_PACKAGE unsigned __fastcall StrLen _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Warning: The ANSI version of StrLen is deprecated. Please use the AnsiStrings unit.

Returns the number of characters in a string, excluding the null terminator.

StrLen returns the number of characters in Str, not counting the null terminator.

See Also

Code Examples