RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.HasUTF8BOM Function

Detects if a string or a stream contains the UTF-8 byte-order mark.

Pascal
function HasUTF8BOM(S: TStream): boolean; overload;
function HasUTF8BOM(const S: RawByteString): boolean; overload;
C++
boolean HasUTF8BOM(TStream S);
boolean HasUTF8BOM(const RawByteString S);

Call HasUTF8BOM to detect if a given string or stream contains the byte-order mark. 

 

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