System.WideStrUtils.HasUTF8BOM
Delphi
function HasUTF8BOM(S : TStream) : boolean; overload;
function HasUTF8BOM(const S: RawByteString) : boolean; overload;
C++
extern DELPHI_PACKAGE bool __fastcall HasUTF8BOM(System::Classes::TStream* S)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Detects if a string or a stream contains the UTF-8 byte-order mark.
Call HasUTF8BOM to detect if a given string or stream contains the byte-order mark.