Lines Matching defs:byte

173  * a NULL termination byte). The string must reside in kernel memory.
179 * UTF_REVERSE_ENDIAN: Unicode byte order is opposite current runtime
181 * UTF_BIG_ENDIAN: Unicode byte order is always big endian
183 * UTF_LITTLE_ENDIAN: Unicode byte order is always little endian
246 * UTF_BIG_ENDIAN: Unicode byte order is always big endian
248 * UTF_LITTLE_ENDIAN: Unicode byte order is always little endian
393 * UTF_REV_ENDIAN: Unicode byte order is opposite current runtime
395 * UTF_BIG_ENDIAN: Unicode byte order is always big endian
397 * UTF_LITTLE_ENDIAN: Unicode byte order is always little endian
417 unsigned int byte;
433 while (utf8len-- > 0 && (byte = *utf8p++) != '\0') {
438 if (byte < 0x80) {
439 ucs_ch = sfmconv ? ucs_to_sfm(byte, utf8len == 0) : byte;
443 extrabytes = utf_extrabytes[byte >> 3];
451 ch = byte; ch <<= 6; /* 1st byte */
452 byte = *utf8p++; /* 2nd byte */
453 if ((byte >> 6) != 2)
455 ch += byte;
462 ch = byte; ch <<= 6; /* 1st byte */
463 byte = *utf8p++; /* 2nd byte */
464 if ((byte >> 6) != 2)
466 ch += byte; ch <<= 6;
467 byte = *utf8p++; /* 3rd byte */
468 if ((byte >> 6) != 2)
470 ch += byte;
483 ch = byte; ch <<= 6; /* 1st byte */
484 byte = *utf8p++; /* 2nd byte */
485 if ((byte >> 6) != 2)
487 ch += byte; ch <<= 6;
488 byte = *utf8p++; /* 3rd byte */
489 if ((byte >> 6) != 2)
491 ch += byte; ch <<= 6;
492 byte = *utf8p++; /* 4th byte */
493 if ((byte >> 6) != 2)
495 ch += byte;
589 byte = *(utf8p - 1);
602 ucs_ch = hexdigits[byte >> 4];
604 ucs_ch = hexdigits[byte & 0x0F];
630 unsigned int byte;
635 while (utf8len-- > 0 && (byte = *utf8p++) != '\0') {
636 if (byte < 0x80)
639 extrabytes = utf_extrabytes[byte >> 3];
647 ch = byte; ch <<= 6; /* 1st byte */
648 byte = *utf8p++; /* 2nd byte */
649 if ((byte >> 6) != 2)
651 ch += byte;
657 ch = byte; ch <<= 6; /* 1st byte */
658 byte = *utf8p++; /* 2nd byte */
659 if ((byte >> 6) != 2)
661 ch += byte; ch <<= 6;
662 byte = *utf8p++; /* 3rd byte */
663 if ((byte >> 6) != 2)
665 ch += byte;
677 ch = byte; ch <<= 6; /* 1st byte */
678 byte = *utf8p++; /* 2nd byte */
679 if ((byte >> 6) != 2)
681 ch += byte; ch <<= 6;
682 byte = *utf8p++; /* 3rd byte */
683 if ((byte >> 6) != 2)
685 ch += byte; ch <<= 6;
686 byte = *utf8p++; /* 4th byte */
687 if ((byte >> 6) != 2)
689 ch += byte;
714 * a NULL termination byte) is returned in outlen. In-place conversions
742 unsigned int byte;
759 while (inlen-- > 0 && (byte = *instr++) != '\0') {
764 if (byte >= 0x80) {
768 *outstr++ = byte;
797 * For pre-composed output, every UTF-8 input byte will be at