MKI_FileCheckUTF8 (File I/O) New in Version 2019.1 |
www.CAD6.com |
C++ Syntaxbool MKI_FileCheckUTF8( HANDLE f_hFileHandle );
Checks whether a file opened for read access contains the UTF8 BOM (0xef 0xbb 0xbf). If so, those three bytes will be skipped.
ParametersFileHandle [HANDLE] File handle of a file open for read access.
Return ValueReturns true if the next 3 bytes of the file contain the UTF8 BOM byte sequence (0xef 0xbb 0xbf) and skips those three bytes. Otherwise, false is returned and the file pointer will be reset to the file's beginning.
CommentShould be called immediately after opening a file for reading, e.g. using MKI_FileOpen.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH