Lines Matching refs:value
17 int (*rfunc) (unsigned long value, void *in),
19 static int in_utf8(unsigned long value, void *arg);
20 static int out_utf8(unsigned long value, void *arg);
21 static int type_str(unsigned long value, void *arg);
22 static int cpy_asc(unsigned long value, void *arg);
23 static int cpy_bmp(unsigned long value, void *arg);
24 static int cpy_univ(unsigned long value, void *arg);
25 static int cpy_utf8(unsigned long value, void *arg);
205 * This function traverses a string and passes the value of each character to
210 int (*rfunc) (unsigned long value, void *in),
213 unsigned long value;
217 value = *p++;
220 value = *p++ << 8;
221 value |= *p++;
224 value = ((unsigned long)*p++) << 24;
225 value |= ((unsigned long)*p++) << 16;
226 value |= *p++ << 8;
227 value |= *p++;
230 ret = UTF8_getc(p, len, &value);
237 ret = rfunc(value, arg);
249 static int in_utf8(unsigned long value, void *arg)
253 if (!is_unicode_valid(value))
262 static int out_utf8(unsigned long value, void *arg)
266 len = UTF8_putc(NULL, -1, value);
279 static int type_str(unsigned long value, void *arg)
282 const int native = value > INT_MAX ? INT_MAX : ossl_fromascii(value);
291 if ((types & B_ASN1_T61STRING) && (value > 0xff))
293 if ((types & B_ASN1_BMPSTRING) && (value > 0xffff))
295 if ((types & B_ASN1_UTF8STRING) && !is_unicode_valid(value))
305 static int cpy_asc(unsigned long value, void *arg)
310 *q = (unsigned char)value;
317 static int cpy_bmp(unsigned long value, void *arg)
322 *q++ = (unsigned char)((value >> 8) & 0xff);
323 *q = (unsigned char)(value & 0xff);
330 static int cpy_univ(unsigned long value, void *arg)
335 *q++ = (unsigned char)((value >> 24) & 0xff);
336 *q++ = (unsigned char)((value >> 16) & 0xff);
337 *q++ = (unsigned char)((value >> 8) & 0xff);
338 *q = (unsigned char)(value & 0xff);
345 static int cpy_utf8(unsigned long value, void *arg)
351 ret = UTF8_putc(*p, 0xff, value);