add_utf8


Description:

[ Version ( since = "0.9.2" ) ]
public void add_utf8 (uint8[] text, uint item_offset, int item_length)

See add_codepoints.

Replaces invalid UTF-8 characters with the buffer replacement code point, see set_replacement_codepoint.

Parameters:

text

An array of UTF-8 characters to append.

item_offset

The offset of the first character to add to the buffer.

item_length

The number of characters to add to the buffer, or -1 for the end of text (assuming it is `NULL` terminated).

buffer

An Buffer

text_length

The length of the text, or -1 if it is `NULL` terminated.