Lines Matching refs:str

49 static char *put_complex_filter( BerElement *ber, char *str,
51 static int unescape_filterval( char *str );
54 static int put_simple_filter( BerElement *ber, char *str );
56 char *str );
57 static int put_filter_list( BerElement *ber, char *str );
405 char *str,
413 * We have (x(filter)...) with str sitting on
423 str++;
424 if ( (next = find_right_paren( str )) == NULL )
428 if ( put_filter_list( ber, str ) == -1 )
440 ldap_put_filter( BerElement *ber, char *str )
470 LDAPDebug( LDAP_DEBUG_TRACE, "put_filter \"%s\"\n", str, 0, 0 );
473 while ( *str ) {
474 switch ( *str ) {
476 str++;
478 switch ( *str ) {
483 if ( (str = put_complex_filter( ber, str,
494 if ( (str = put_complex_filter( ber, str,
505 if ( (str = put_complex_filter( ber, str,
518 next = str;
537 if ( put_simple_filter( ber, str ) == -1 ) {
541 str = next;
552 str++;
557 str++;
563 next = strchr( str, '\0' );
564 if ( put_simple_filter( ber, str ) == -1 ) {
567 str = next;
581 put_filter_list( BerElement *ber, char *str )
586 LDAPDebug( LDAP_DEBUG_TRACE, "put_filter_list \"%s\"\n", str, 0, 0 );
588 while ( *str ) {
589 while ( *str && isspace( *str ) )
590 str++;
591 if ( *str == '\0' )
594 if ( (next = find_right_paren( str + 1 )) == NULL )
598 /* now we have "(filter)" with str pointing to it */
600 if ( ldap_put_filter( ber, str ) == -1 )
604 str = next;
663 put_simple_filter( BerElement *ber, char *str )
672 LDAPDebug( LDAP_DEBUG_TRACE, "put_simple_filter \"%s\"\n", str, 0, 0 );
676 if (( str = nsldapi_strdup( str )) == NULL ) {
680 if ( (s = strchr( str, '=' )) == NULL ) {
691 if ( ! is_valid_attr( str ) ) {
716 if ( (s2 = strrchr( str, ':' )) == NULL ) {
727 if ( (s3 = strrchr( str, ':' )) != NULL ) {
745 if ( *str != '\0' ) {
747 LDAP_TAG_MRA_TYPE, str )) == -1 ) {
765 rc = put_substring_filter( ber, str, value );
772 rc = ber_printf( ber, "ts", ftype, str );
774 rc = ber_printf( ber, "t{so}", ftype, str, value, len );
781 NSLDAPI_FREE( str );