90
90
/* Normalizes the text at @buf of length @buf_len, @buf can include \0 characters.
91
91
* Stores the normalized text in @state's buffer.
92
92
* Returns how many bytes it consumed of the input. */
93
ssize_t text_normalize_buffer(struct text_norm_state *state, const unsigned char *buf, const size_t buf_len)
93
size_t text_normalize_buffer(struct text_norm_state *state, const unsigned char *buf, const size_t buf_len)
96
96
const unsigned char *out_end = state->out + state->out_len;