Lines Matching refs:bf
472 looks_ucs16(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, in looks_ucs16() argument
481 if (bf[0] == 0xff && bf[1] == 0xfe) in looks_ucs16()
483 else if (bf[0] == 0xfe && bf[1] == 0xff) in looks_ucs16()
494 ubf[(*ulen)++] = bf[i + 1] in looks_ucs16()
495 | (CAST(file_unichar_t, bf[i]) << 8); in looks_ucs16()
497 ubf[(*ulen)++] = bf[i] in looks_ucs16()
498 | (CAST(file_unichar_t, bf[i + 1]) << 8); in looks_ucs16()
511 looks_ucs32(const unsigned char *bf, size_t nbytes, file_unichar_t *ubf, in looks_ucs32() argument
520 if (bf[0] == 0xff && bf[1] == 0xfe && bf[2] == 0 && bf[3] == 0) in looks_ucs32()
522 else if (bf[0] == 0 && bf[1] == 0 && bf[2] == 0xfe && bf[3] == 0xff) in looks_ucs32()
533 ubf[(*ulen)++] = CAST(file_unichar_t, bf[i + 3]) in looks_ucs32()
534 | (CAST(file_unichar_t, bf[i + 2]) << 8) in looks_ucs32()
535 | (CAST(file_unichar_t, bf[i + 1]) << 16) in looks_ucs32()
536 | (CAST(file_unichar_t, bf[i]) << 24); in looks_ucs32()
538 ubf[(*ulen)++] = CAST(file_unichar_t, bf[i + 0]) in looks_ucs32()
539 | (CAST(file_unichar_t, bf[i + 1]) << 8) in looks_ucs32()
540 | (CAST(file_unichar_t, bf[i + 2]) << 16) in looks_ucs32()
541 | (CAST(file_unichar_t, bf[i + 3]) << 24); in looks_ucs32()