Lines Matching refs:value

31     unsigned long value;  in UTF8_getc()  local
39 value = *p++ & 0x7f; in UTF8_getc()
46 value = (*p++ & 0x1f) << 6; in UTF8_getc()
47 value |= *p++ & 0x3f; in UTF8_getc()
48 if (value < 0x80) in UTF8_getc()
57 value = (*p++ & 0xf) << 12; in UTF8_getc()
58 value |= (*p++ & 0x3f) << 6; in UTF8_getc()
59 value |= *p++ & 0x3f; in UTF8_getc()
60 if (value < 0x800) in UTF8_getc()
62 if (is_unicode_surrogate(value)) in UTF8_getc()
72 value = ((unsigned long)(*p++ & 0x7)) << 18; in UTF8_getc()
73 value |= (*p++ & 0x3f) << 12; in UTF8_getc()
74 value |= (*p++ & 0x3f) << 6; in UTF8_getc()
75 value |= *p++ & 0x3f; in UTF8_getc()
76 if (value < 0x10000) in UTF8_getc()
81 *val = value; in UTF8_getc()
93 int UTF8_putc(unsigned char *str, int len, unsigned long value) in UTF8_putc() argument
99 if (value < 0x80) { in UTF8_putc()
101 *str = (unsigned char)value; in UTF8_putc()
104 if (value < 0x800) { in UTF8_putc()
108 *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0); in UTF8_putc()
109 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
113 if (value < 0x10000) { in UTF8_putc()
114 if (is_unicode_surrogate(value)) in UTF8_putc()
119 *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0); in UTF8_putc()
120 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80); in UTF8_putc()
121 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
125 if (value < UNICODE_LIMIT) { in UTF8_putc()
129 *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0); in UTF8_putc()
130 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80); in UTF8_putc()
131 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80); in UTF8_putc()
132 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()