RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TMbcsByteType Enumeration

TMbcsByteType represents the use of a single byte in a string that uses a multi-byte character set (MBCS).

Pascal
TMbcsByteType = (
  mbSingleByte,
  mbLeadByte,
  mbTrailByte
);
C++
enum TMbcsByteType {
  mbSingleByte,
  mbLeadByte,
  mbTrailByte
};

TMbcsByteType represents the possible return values of the ByteType and StrByteType functions. Possible values are as follows:

Values 
Meaning 
mbSingleByte  
The char is used to represent an entire character in the string. The value of Char can not be included in the LeadBytes set.  
mbLeadByte  
The char is used to represent the first byte of a multi-byte character. The value of Char must be included in the LeadBytes set.  
mbTrailByte  
The char is used to represent one of the trailing bytes in a multi-byte character. There are no a priori restrictions on the value of char.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!