RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.IsUTF8LeadByte Function

Checks whether a character is a valid UTF-8 lead byte.

Pascal
function IsUTF8LeadByte(Lead: AnsiChar): Boolean;
C++
Boolean IsUTF8LeadByte(AnsiChar Lead);

Call IsUTF8LeadByte to check whether a character is a valid UTF-8 lead byte.  

All bytes between 0 .. 127 ($7F) and 194 ($C2) .. 253 ($FD) are valid UTF-8 lead bytes. 

 

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