Lines Matching refs:ptr

27 	free(b->ptr);  in buffer_free()
32 free(b->ptr); in buffer_free_ptr()
33 b->ptr = NULL; in buffer_free_ptr()
61 b->ptr = realloc(b->ptr, sz); in __attribute_nonnull__()
63 force_assert(NULL != b->ptr); in __attribute_nonnull__()
64 return b->ptr; in __attribute_nonnull__()
73 if (NULL != b->ptr) { in __attribute_nonnull__()
74 free(b->ptr); in __attribute_nonnull__()
75 b->ptr = NULL; in __attribute_nonnull__()
85 force_assert(size >= b->size || b->ptr); in buffer_string_prepare_copy()
88 ? b->ptr in buffer_string_prepare_copy()
119 ? b->ptr + len in buffer_string_prepare_append()
138 ? b->ptr + len in buffer_extend()
158 b->ptr[sz - 1] = '\0'; in buffer_commit()
170 ? b->ptr in buffer_copy_string_len()
418 return (b->used == slen + 1) ? buffer_eq_icase_ssn(b->ptr, s, slen) : 0; in buffer_eq_icase_slen()
424 return (b->used == slen + 1 && 0 == memcmp(b->ptr, s, slen)); in buffer_eq_slen()
434 return (a->used == b->used && 0 == memcmp(a->ptr, b->ptr, a->used)); in buffer_is_equal()
469 memmove(b->ptr+offset+rlen, b->ptr+offset+len, blen-offset-len); in buffer_substr_replace()
472 memcpy(b->ptr+offset, replace->ptr, rlen); in buffer_substr_replace()
475 memmove(b->ptr+offset+rlen, b->ptr+offset+len, blen-offset-len); in buffer_substr_replace()
730 const char * const ptr = s; in buffer_append_bs_escaped() local
734 if (s - ptr) buffer_append_string_len(b, ptr, s - ptr); in buffer_append_bs_escaped()
778 const char * const ptr = s; in buffer_append_bs_escaped_json() local
782 if (s - ptr) buffer_append_string_len(b, ptr, s - ptr); in buffer_append_bs_escaped_json()
824 char *src = len ? memchr(b->ptr, '%', len) : NULL; in buffer_urldecode_path()
840 b->used = (dst - b->ptr) + 1; in buffer_urldecode_path()
846 const unsigned char *c = (unsigned char *)b->ptr; in buffer_is_valid_UTF8()
895 char *out = b->ptr; in buffer_path_simplify()
896 char * const end = b->ptr + b->used - 1; in buffer_path_simplify()
905 for (char *p = b->ptr; *p; p++) { in buffer_path_simplify()
955 while (out > b->ptr && *--out != '/') ; in buffer_path_simplify()
982 b->used = (out - b->ptr) + 1; in buffer_path_simplify()
987 unsigned char * const restrict s = (unsigned char *)b->ptr; in buffer_to_lower()
996 unsigned char * const restrict s = (unsigned char *)b->ptr; in buffer_to_upper()