third_party/cairo/src/cairo-pdf-operators.c
static int
_word_wrap_stream_count_word_up_to (word_wrap_stream_t *stream,
				   const unsigned char *data, int length)
{
    const unsigned char *s = data;
    int count = 0;

    while (length--) {
	if (_cairo_isspace (*s) || *s == '<' || *s == '(') {
	    stream->state = WRAP_STATE_DELIMITER;
	    break;
	}

	count++;
	stream->column++;
	s++;
    }

    if (count)
	_cairo_output_stream_write (stream->output, data, count);

    return count;
}
/* Emit word bytes up to the next delimiter character */
Emit word bytes up to the next delimiter character
Emit word bytes up to the next delimiter character
static int
_word_wrap_stream_count_word_up_to (word_wrap_stream_t *stream,
				   const unsigned char *data, int length)
{
    const unsigned char *s = data;
    int count = 0;
    while (length--) {
	if (_cairo_isspace (*s) || *s == '<' || *s == '(') {
	    stream->state = WRAP_STATE_DELIMITER;
	    break;
	}
	count++;
	stream->column++;
	s++;
    }
    if (count)
	_cairo_output_stream_write (stream->output, data, count);
    return count;
}
static int _word_wrap_stream_count_word_up_to ( word_wrap_stream_t * stream , const unsigned char * data , int length ) { const unsigned char * s = data ; int count = 0 ; while ( length -- ) { if ( _cairo_isspace ( * s ) || * s == ' ' || * s == ' ' ) { stream -> state = WRAP_STATE_DELIMITER ; break ; } count ++ ; stream -> column ++ ; s ++ ; } if ( count ) _cairo_output_stream_write ( stream -> output , data , count ) ; return count ; }
Emit word bytes up to the next delimiter character
Emit word bytes up to the next delimiter character