Show: Delphi C++
Display Preferences

System.StringElementSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StringElementSize(const S: UnicodeString): Word; overload;
function StringElementSize(const S: _RawByteStr): Word; overload;

C++

extern DELPHI_PACKAGE Word __fastcall StringElementSize(const UnicodeString S)/* overload */;

Properties

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

Description

Returns the number of bytes that represent a character in the string.

Call StringElementSize to obtain the number of bytes necessary to represent one character in the current string. Calling StringElementSize for Unicode strings always returns a result of 2.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance