Home
last modified time | relevance | path

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

/external/icu/icu4c/source/samples/layout/
DUnicodeReader.cpp40 int32_t signatureLength = 0; in readFile() local
58 signatureLength = 2; in readFile()
62 signatureLength = 4; in readFile()
65 signatureLength = 2; in readFile()
69 signatureLength = 3; in readFile()
72 signatureLength = 3; in readFile()
76 signatureLength = 4; in readFile()
85 fileSize -= signatureLength; in readFile()
86 fseek(f, signatureLength, SEEK_SET); in readFile()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/
DArchiveStreamFactory.java497 int signatureLength = -1;
499 signatureLength = IOUtils.readFully(in, signature);
505 if (ZipArchiveInputStream.matches(signature, signatureLength)) {
507 } else if (JarArchiveInputStream.matches(signature, signatureLength)) {
509 } else if (ArArchiveInputStream.matches(signature, signatureLength)) {
511 } else if (CpioArchiveInputStream.matches(signature, signatureLength)) {
513 } else if (ArjArchiveInputStream.matches(signature, signatureLength)) {
515 } else if (SevenZFile.matches(signature, signatureLength)) {
523 signatureLength = IOUtils.readFully(in, dumpsig);
528 if (DumpArchiveInputStream.matches(dumpsig, signatureLength)) {
[all …]
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.cpp47 int32_t signatureLength; member
55 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, U… in ucbuf_autodetect_fs() argument
66 *cp = ucnv_detectUnicodeSignature(start, numRead, signatureLength, error); in ucbuf_autodetect_fs()
70 if (*signatureLength > 0) { in ucbuf_autodetect_fs()
71 T_FileStream_read(in, start, *signatureLength); in ucbuf_autodetect_fs()
85 ucnv_toUnicode(*conv, &pTarget, target+1, &pStart, start+*signatureLength, NULL, FALSE, error); in ucbuf_autodetect_fs()
86 *signatureLength = (int32_t)(pStart - start); in ucbuf_autodetect_fs()
134 ucbuf_autodetect(const char* fileName, const char** cp,UConverter** conv, int32_t* signatureLength,… in ucbuf_autodetect() argument
151 if(ucbuf_autodetect_fs(in,cp,conv,signatureLength,error)) { in ucbuf_autodetect()
480 buf->signatureLength=0; in ucbuf_open()
[all …]
Ducbuf.h186 int32_t* signatureLength, UErrorCode* status);
205 ucbuf_autodetect_fs(FileStream* in, const char** cp, UConverter** conv, int32_t* signatureLength, U…
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/
DCompressorStreamFactory.java477 int signatureLength = -1;
479 signatureLength = IOUtils.readFully(in, signature);
485 if (BZip2CompressorInputStream.matches(signature, signatureLength)) {
489 if (GzipCompressorInputStream.matches(signature, signatureLength)) {
493 if (Pack200CompressorInputStream.matches(signature, signatureLength)) {
497 if (FramedSnappyCompressorInputStream.matches(signature, signatureLength)) {
501 if (ZCompressorInputStream.matches(signature, signatureLength)) {
505 if (DeflateCompressorInputStream.matches(signature, signatureLength)) {
509 if (XZUtils.matches(signature, signatureLength)) {
513 if (LZMAUtils.matches(signature, signatureLength)) {
[all …]
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestConversion.java1049 int signatureLength = 0; // number of bytes of the signature in detectUnicodeSignature() local
1067 signatureLength = 2; in detectUnicodeSignature()
1069 source.position(signatureLength); in detectUnicodeSignature()
1073 signatureLength = 4; in detectUnicodeSignature()
1075 source.position(signatureLength); in detectUnicodeSignature()
1078 signatureLength = 2; in detectUnicodeSignature()
1080 source.position(signatureLength); in detectUnicodeSignature()
1085 signatureLength = 3; in detectUnicodeSignature()
1087 source.position(signatureLength); in detectUnicodeSignature()
1091 signatureLength = 4; in detectUnicodeSignature()
[all …]
/external/icu/icu4c/source/samples/ugrep/
Dugrep.cpp306 int32_t signatureLength; in readFile() local
310 charDataStart, rawFileLen, &signatureLength, &status); in readFile()
317 charDataStart += signatureLength; in readFile()
318 rawFileLen -= signatureLength; in readFile()
/external/icu/icu4c/source/tools/genbrk/
Dgenbrk.cpp230 int32_t signatureLength; in main() local
233 ruleSourceC, ruleFileSize, &signatureLength, &status); in main()
238 ruleSourceC += signatureLength; in main()
239 ruleFileSize -= signatureLength; in main()
/external/icu/icu4c/source/common/
Ducnv.cpp2749 int32_t* signatureLength, in ucnv_detectUnicodeSignature() argument
2768 if(signatureLength == NULL) { in ucnv_detectUnicodeSignature()
2769 signatureLength = &dummy; in ucnv_detectUnicodeSignature()
2783 *signatureLength=2; in ucnv_detectUnicodeSignature()
2787 *signatureLength=4; in ucnv_detectUnicodeSignature()
2790 *signatureLength=2; in ucnv_detectUnicodeSignature()
2794 *signatureLength=3; in ucnv_detectUnicodeSignature()
2798 *signatureLength=4; in ucnv_detectUnicodeSignature()
2801 *signatureLength=3; in ucnv_detectUnicodeSignature()
2804 *signatureLength=3; in ucnv_detectUnicodeSignature()
[all …]
/external/doclava/src/com/google/doclava/
DMethodInfo.java598 int signatureLength = signatureParam.length(); in matchesType() local
600 return ((signatureParam.equals(callerParam) || ((callerLength + 1) < signatureLength in matchesType()
601 && signatureParam.charAt(signatureLength - callerLength - 1) == '.' in matchesType()
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp1084 int32_t signatureLength = 0; in convsample_50() local
1085 const char *encoding = ucnv_detectUnicodeSignature(input,sizeof(input),&signatureLength,&err); in convsample_50()
/external/icu/icu4c/source/test/cintltst/
Dnucnvtst.c1680 int32_t signatureLength = -1; in TestSignatureDetection() local
1686 enc = ucnv_detectUnicodeSignature(source, -1 , &signatureLength, &err); in TestSignatureDetection()
1695 if(signatureLength != expectedLength[i]){ in TestSignatureDetection()
1696 …ce : %s at index :%i.Expected Length: %i. Got length: %i\n",source,i,signatureLength,expectedLengt… in TestSignatureDetection()
1792 int32_t signatureLength = -1; in TestSignatureDetection() local
1800 enc = ucnv_detectUnicodeSignature(source, sourceLength , &signatureLength, &err); in TestSignatureDetection()
1811 if(signatureLength != expectedLength[i]){ in TestSignatureDetection()
1812 …ce : %s at index :%i.Expected Length: %i. Got length: %i\n",source,i,signatureLength,expectedLengt… in TestSignatureDetection()
/external/icu/libandroidicu/include/unicode/
Ducnv.h1990 int32_t *signatureLength,
/external/icu/icu4c/source/common/unicode/
Ducnv.h1990 int32_t *signatureLength,
/external/icu/icu4c/source/test/intltest/
Drbbitst.cpp1187 int32_t signatureLength; in ReadAndConvertFile() local
1193 fileBuf, fileSize, &signatureLength, &status); in ReadAndConvertFile()
1195 fileBufC += signatureLength; in ReadAndConvertFile()
1196 fileSize -= signatureLength; in ReadAndConvertFile()
Dregextst.cpp3873 int32_t signatureLength; in ReadAndConvertFile() local
3879 fileBuf, fileSize, &signatureLength, &status); in ReadAndConvertFile()
3881 fileBufC += signatureLength; in ReadAndConvertFile()
3882 fileSize -= signatureLength; in ReadAndConvertFile()
/external/icu/libandroidicu/static_shim/
Dshim.cpp940 …gnature_android(const char * source, int32_t sourceLength, int32_t * signatureLength, UErrorCode *… in ucnv_detectUnicodeSignature_android() argument
941 return ucnv_detectUnicodeSignature(source, sourceLength, signatureLength, pErrorCode); in ucnv_detectUnicodeSignature_android()