Lines Matching defs:byte
549 * Return -1 with errno set if string has invalid byte sequence or too long.
702 unsigned int byte;
705 while ((byte = *((const unsigned char *)s++))) {
708 if (byte >= 0xc0) {
709 if (byte >= 0xF5) {
715 if (byte >= 0xC0)
719 if (byte >= 0xE0)
723 if (byte >= 0xF0) {
746 unsigned int byte = *((const unsigned char *)s);
748 /* single byte */
749 if (byte == 0) {
752 } else if (byte < 0x80) {
753 *wc = (u32) byte;
755 /* double byte */
756 } else if (byte < 0xc2) {
758 } else if (byte < 0xE0) {
760 *wc = ((u32)(byte & 0x1F) << 6)
765 /* three-byte */
766 } else if (byte < 0xF0) {
768 *wc = ((u32)(byte & 0x0F) << 12)
784 /* four-byte */
785 } else if (byte < 0xF5) {
788 *wc = ((u32)(byte & 0x07) << 18)
888 * Convert the input little endian, 2-byte Unicode string @ins, of length
895 * string *@outs (>= 0), not counting the terminating NULL byte. If the output
1010 * corresponding little endian, 2-byte Unicode string.
1048 /* Determine the size of the multi-byte string in bytes. */
1050 /* Determine the length of the multi-byte string. */
1431 * 2-byte Unicode string. The length of the converted string is less