utf8_remove_controls


Description:


[ Version ( since = "4.2" ) ]
public string utf8_remove_controls (string str, ssize_t max_len, string end)

Removes all control characters from str up to end or up to max_len characters (note that characters does not mean bytes with UTF-8), where both str and max_len may not be given.

Control characters are replaced in str by whitespaces, no new string will be allocated. The operation is done in-place.

Parameters:

str

target string.

max_len

max characters to check or -1 for no character limit.

end

pointer to the endpoint in str or null for no endpoint.

Returns:

pointer to str or null on error.


Namespace: Xfce