RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiString::ByteType Method

Indicates the kind of byte that occupies a specified position in the System::AnsiString::AnsiString.

Pascal
function ByteType(index: Integer): TStringMbcsByteType;
C++
__fastcall TStringMbcsByteType ByteType(int index) const;

System::AnsiString::ByteType indicates what kind of byte exists at the byte indicated by index (counting from 0) in the System::AnsiString::AnsiString. These are the possible return values.

Constant 
Meaning 
mbSingleByte  
Single byte character.  
mbLeadByte  
Lead byte of a multi-byte character.  
mbTrailByte  
Trailing byte of a multi-byte character.  

Some locales, including all Western locales, do not use multi-byte characters. Under those locales, System::AnsiString::ByteType always returns mbSingleByte. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!