third-party libs
This commit is contained in:
parent
f836927d3a
commit
b154ee9266
3667 changed files with 854591 additions and 0 deletions
26
third-party/BugTrap-1.3-57bd515/source/TextFormat.h
vendored
Normal file
26
third-party/BugTrap-1.3-57bd515/source/TextFormat.h
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* This is a part of the BugTrap package.
|
||||
* Copyright (c) 2005-2009 IntelleSoft.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Description: Text format analyzer.
|
||||
* Author: Maksim Pyatkovskiy.
|
||||
*
|
||||
* This source code is only intended as a supplement to the
|
||||
* BugTrap package reference and related electronic documentation
|
||||
* provided with the product. See these sources for detailed
|
||||
* information regarding the BugTrap package.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Encoding.h"
|
||||
|
||||
/// UTF-8 preamble.
|
||||
const BYTE g_arrUTF8Preamble[] = { 0xEF, 0xBB, 0xBF };
|
||||
/// UTF-16/UCS-2, little-endian preamble.
|
||||
const BYTE g_arrUTF16LEPreamble[] = { 0xFF, 0xFE };
|
||||
/// UTF-16/UCS-2, big-endian preamble.
|
||||
const BYTE g_arrUTF16BEPreamble[] = { 0xFE, 0xFF };
|
||||
|
||||
DWORD DetectFileFormat(PCTSTR pszFileName, HANDLE hFile, BOOL& bTextFile, TEXT_ENCODING& eEncoding);
|
||||
Loading…
Add table
Add a link
Reference in a new issue