Lines Matching refs:str

47 static char *put_complex_filter(BerElement *ber, char *str,
49 static int put_filter(BerElement *ber, char *str);
50 static int put_simple_filter(BerElement *ber, char *str);
51 static int put_substring_filter(BerElement *ber, char *type, char *str);
52 static int put_filter_list(BerElement *ber, char *str);
53 static char *star_search(char *str);
55 static int decode_value(char *str);
291 put_complex_filter(BerElement *ber, char *str, unsigned int tag, int not)
296 * We have (x(filter)...) with str sitting on
310 str++;
311 if ((next = find_right_paren(str)) == NULL)
315 if (put_filter_list(ber, str) == -1)
331 put_filter(BerElement *ber, char *str)
371 "put_filter \"%s\"\n"), str, 0, 0);
374 while (*str) {
375 switch (*str) {
377 str++;
379 switch (*str) {
384 if ((str = put_complex_filter(ber, str,
395 if ((str = put_complex_filter(ber, str,
406 if ((str = put_complex_filter(ber, str,
426 next = str;
445 if (put_simple_filter(ber, str) == -1)
448 str = next;
464 str++;
469 str++;
475 next = strchr(str, '\0');
476 if (put_simple_filter(ber, str) == -1) {
479 str = next;
492 put_filter_list(BerElement *ber, char *str)
498 "put_filter_list \"%s\"\n"), str, 0, 0);
500 while (*str) {
501 while (*str && isspace(*str))
502 str++;
503 if (*str == '\0')
506 if ((next = find_right_paren(str + 1)) == NULL)
510 /* now we have "(filter)" with str pointing to it */
512 if (put_filter(ber, str) == -1)
516 str = next;
523 put_simple_filter(BerElement *ber, char *str)
532 "put_simple_filter \"%s\"\n"), str, 0, 0);
534 if ((s = strchr(str, '=')) == NULL)
555 rc = put_extensible_filter(ber, str, value);
564 rc = put_substring_filter(ber, str, value);
574 rc = ber_printf(ber, "ts", ftype, str);
577 rc = ber_printf(ber, "t{so}", ftype, str, value, len);
871 star_search(char *str)
873 for (; *str; str++) {
874 switch (*str) {
876 return (str);
878 if (str[1] == '\0')
880 ++str; /* Assume RFC 1960 escaped character */
882 if (hex_char2int(str[0]) >= 0 &&
883 hex_char2int(str[1]) >= 0) {
884 str++; /* skip over RFC 2254 hex encoding */