Lines Matching defs:value

67  * to the string and the length of the string. It sets 'value' to the value of
79 unsigned long value;
85 /* Check syntax and work out the encoded value (if correct) */
87 value = *p++ & 0x7f;
94 value = (*p++ & 0x1f) << 6;
95 value |= *p++ & 0x3f;
96 if (value < 0x80)
105 value = (*p++ & 0xf) << 12;
106 value |= (*p++ & 0x3f) << 6;
107 value |= *p++ & 0x3f;
108 if (value < 0x800)
118 value = ((unsigned long)(*p++ & 0x7)) << 18;
119 value |= (*p++ & 0x3f) << 12;
120 value |= (*p++ & 0x3f) << 6;
121 value |= *p++ & 0x3f;
122 if (value < 0x10000)
133 value = ((unsigned long)(*p++ & 0x3)) << 24;
134 value |= ((unsigned long)(*p++ & 0x3f)) << 18;
135 value |= ((unsigned long)(*p++ & 0x3f)) << 12;
136 value |= (*p++ & 0x3f) << 6;
137 value |= *p++ & 0x3f;
138 if (value < 0x200000)
150 value = ((unsigned long)(*p++ & 0x1)) << 30;
151 value |= ((unsigned long)(*p++ & 0x3f)) << 24;
152 value |= ((unsigned long)(*p++ & 0x3f)) << 18;
153 value |= ((unsigned long)(*p++ & 0x3f)) << 12;
154 value |= (*p++ & 0x3f) << 6;
155 value |= *p++ & 0x3f;
156 if (value < 0x4000000)
161 *val = value;
166 * This takes a character 'value' and writes the UTF8 encoded value in 'str'
173 int UTF8_putc(unsigned char *str, int len, unsigned long value)
179 if (value < 0x80) {
181 *str = (unsigned char)value;
184 if (value < 0x800) {
188 *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);
189 *str = (unsigned char)((value & 0x3f) | 0x80);
193 if (value < 0x10000) {
197 *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);
198 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
199 *str = (unsigned char)((value & 0x3f) | 0x80);
203 if (value < 0x200000) {
207 *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);
208 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
209 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
210 *str = (unsigned char)((value & 0x3f) | 0x80);
214 if (value < 0x4000000) {
218 *str++ = (unsigned char)(((value >> 24) & 0x3) | 0xf8);
219 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);
220 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
221 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
222 *str = (unsigned char)((value & 0x3f) | 0x80);
229 *str++ = (unsigned char)(((value >> 30) & 0x1) | 0xfc);
230 *str++ = (unsigned char)(((value >> 24) & 0x3f) | 0x80);
231 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);
232 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);
233 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);
234 *str = (unsigned char)((value & 0x3f) | 0x80);