Home
last modified time | relevance | path

Searched refs:startBytes (Results 1 – 1 of 1) sorted by relevance

/external/icu/icu4c/source/samples/layout/
DUnicodeReader.cpp37 char startBytes[4] = {'\xA5', '\xA5', '\xA5', '\xA5'}; in readFile() local
54 fread(startBytes, sizeof(char), 4, f); in readFile()
56 if (startBytes[0] == '\xFE' && startBytes[1] == '\xFF') { in readFile()
59 } else if (startBytes[0] == '\xFF' && startBytes[1] == '\xFE') { in readFile()
60 if (startBytes[2] == '\x00' && startBytes[3] == '\x00') { in readFile()
67 } else if (startBytes[0] == '\xEF' && startBytes[1] == '\xBB' && startBytes[2] == '\xBF') { in readFile()
70 } else if (startBytes[0] == '\x0E' && startBytes[1] == '\xFE' && startBytes[2] == '\xFF') { in readFile()
73 } else if (startBytes[0] == '\x00' && startBytes[1] == '\x00' && in readFile()
74 startBytes[2] == '\xFE' && startBytes[3] == '\xFF') { in readFile()
79 … BYTE(startBytes[0]), BYTE(startBytes[1]), BYTE(startBytes[2]), BYTE(startBytes[3])); in readFile()