Lines Matching refs:bv
113 struct berval *bv, void *ctx ));
117 struct berval **bv, void *ctx ));
122 struct berval *bv, void *ctx ));
130 LDAP_CONST char *, ber_len_t len, int dup, struct berval *bv, void *ctx));
134 LDAP_CONST char *, ber_len_t len, int dup, struct berval *bv, void *ctx));
148 ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx ));
174 #define ber_bvchr(bv,c) \
175 ((char *) memchr( (bv)->bv_val, (c), (bv)->bv_len ))
177 #define ber_bvrchr(bv,c) \
178 ((char *) lutil_memrchr( (bv)->bv_val, (c), (bv)->bv_len ))
180 #define ber_bvchr_post(dst,bv,c) \
182 (dst)->bv_val = memchr( (bv)->bv_val, (c), (bv)->bv_len ); \
183 (dst)->bv_len = (dst)->bv_val ? (bv)->bv_len - ((dst)->bv_val - (bv)->bv_val) : 0; \
186 #define ber_bvchr_pre(dst,bv,c) \
188 (dst)->bv_val = memchr( (bv)->bv_val, (c), (bv)->bv_len ); \
189 (dst)->bv_len = (dst)->bv_val ? ((dst)->bv_val - (bv)->bv_val) : (bv)->bv_len; \
190 (dst)->bv_val = (bv)->bv_val; \
193 #define ber_bvrchr_post(dst,bv,c) \
195 (dst)->bv_val = lutil_memrchr( (bv)->bv_val, (c), (bv)->bv_len ); \
196 (dst)->bv_len = (dst)->bv_val ? (bv)->bv_len - ((dst)->bv_val - (bv)->bv_val) : 0; \
199 #define ber_bvrchr_pre(dst,bv,c) \
201 (dst)->bv_val = lutil_memrchr( (bv)->bv_val, (c), (bv)->bv_len ); \
202 (dst)->bv_len = (dst)->bv_val ? ((dst)->bv_val - (bv)->bv_val) : (bv)->bv_len; \
203 (dst)->bv_val = (bv)->bv_val; \
209 #define BER_BVZERO(bv) \
211 (bv)->bv_len = 0; \
212 (bv)->bv_val = NULL; \
214 #define BER_BVSTR(bv,s) \
216 (bv)->bv_len = BER_STRLENOF(s); \
217 (bv)->bv_val = (s); \
219 #define BER_BVISNULL(bv) ((bv)->bv_val == NULL)
220 #define BER_BVISEMPTY(bv) ((bv)->bv_len == 0)