Lines Matching refs:len
64 ptr->len = 0; in sb_build()
86 sb_check (ptr, s->len); in sb_add_sb()
87 memcpy (ptr->ptr + ptr->len, s->ptr, s->len); in sb_add_sb()
88 ptr->len += s->len; in sb_add_sb()
99 copy = sb_to_scrub->len - (scrub_position - sb_to_scrub->ptr); in scrub_from_sb()
116 sb_check (ptr, s->len); in sb_scrub_and_add_sb()
117 ptr->len += do_scrub_chars (scrub_from_sb, ptr->ptr + ptr->len, s->len); in sb_scrub_and_add_sb()
127 sb_check (sb *ptr, size_t len) in sb_check() argument
129 size_t want = ptr->len + len; in sb_check()
159 ptr->len = 0; in sb_reset()
168 ptr->ptr[ptr->len++] = c; in sb_add_char()
176 size_t len = strlen (s); in sb_add_string() local
177 sb_check (ptr, len); in sb_add_string()
178 memcpy (ptr->ptr + ptr->len, s, len); in sb_add_string()
179 ptr->len += len; in sb_add_string()
185 sb_add_buffer (sb *ptr, const char *s, size_t len) in sb_add_buffer() argument
187 sb_check (ptr, len); in sb_add_buffer()
188 memcpy (ptr->ptr + ptr->len, s, len); in sb_add_buffer()
189 ptr->len += len; in sb_add_buffer()
197 in->ptr[in->len] = 0; in sb_terminate()
207 while (idx < ptr->len in sb_skip_white()
221 while (idx < ptr->len in sb_skip_comma()
226 if (idx < ptr->len in sb_skip_comma()
230 while (idx < ptr->len in sb_skip_comma()