System.UnicodeString.ByteType

From RAD Studio API Documentation
Jump to: navigation, search

C++

TStringLeadCharType ByteType(int index) const _ALWAYS_INLINE {

Properties

Type Visibility Source Unit Parent
function public ustring.h System UnicodeString

Description

Indicates the kind of byte that occupies specified position in UnicodeString.

ByteType indicates what kind of byte exists at the byte indicated by index (counting from 1) in the UnicodeString. Note that index is an element index into the string, not a character or byte index. The following table lists the possible return values.



Constant Meaning

ctNotLeadChar

Not a lead character.

ctbLeadSurrogate

Lead surrogate pair character.

ctTrailSurrogate

Trailing surrogate pair character.



Note: No checking is done to ensure that index is less than the length of the string. It is the caller's responsibility to ensure that Index is not out of bounds.

See Also