RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.IsUTF8TrailByte Function

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

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

Call IsUTF8TrailByte to check whether a character is a valid UTF-8 trail byte.  

All bytes between 128 ($80) .. 191 ($BF) are valid UTF-8 trail bytes. 

 

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