Lines Matching refs:curr_buflen
409 bp->curr_buflen = 0; in mixed_string_buffer_init()
420 return (bp->nsegments == 0 && bp->curr_buflen == 0); in mixed_string_buffer_is_empty()
429 if (bp->curr_buflen + count > bp->curr_allocated) in mixed_string_buffer_grow_curr_buffer()
432 if (new_allocated < bp->curr_buflen + count) in mixed_string_buffer_grow_curr_buffer()
433 new_allocated = bp->curr_buflen + count; in mixed_string_buffer_grow_curr_buffer()
444 if (bp->curr_buflen == bp->curr_allocated) in mixed_string_buffer_append_to_curr_buffer()
449 bp->curr_buffer[bp->curr_buflen++] = c; in mixed_string_buffer_append_to_curr_buffer()
466 memcpy (bp->curr_buffer + bp->curr_buflen, utf8buf, count); in mixed_string_buffer_append_to_utf8_buffer()
467 bp->curr_buflen += count; in mixed_string_buffer_append_to_utf8_buffer()
540 if (bp->curr_buflen > 0) in mixed_string_buffer_flush_curr()
543 segment_alloc (bp->curr_type, bp->curr_buffer, bp->curr_buflen); in mixed_string_buffer_flush_curr()
546 bp->curr_buflen = 0; in mixed_string_buffer_flush_curr()