Lines Matching refs:ds_idx
13 (ds_size) and index of the next free byte in the string (ds_idx).
281 + if (string->ds_idx == string->ds_size)
297 + s->ds_idx = len;
314 + s->ds_idx = 0;
329 + s->ds_string[s->ds_idx++] = next_ch;
333 + s->ds_string[s->ds_idx] = '\0';
336 + if (s->ds_idx == 0 && next_ch == EOF)
346 + s->ds_string[s->ds_idx] = c;
349 + s->ds_idx++;
351 + s->ds_string[s->ds_idx] = 0;
361 + memcpy (s->ds_string + s->ds_idx, str, len);
362 + s->ds_idx += len;
363 + s->ds_string[s->ds_idx] = 0;
378 + return (s->ds_idx > 0 && s->ds_string[s->ds_idx - 1] == c);
402 + size_t ds_idx; /* Index of the next free byte in the string. */
422 +/* All functions below guarantee that s->ds_string[s->ds_idx] == '\0' */
429 +#define ds_len(s) ((s)->ds_idx)