Unicode Manipulation

Unicode Manipulation — functions operating on Unicode characters and UTF-8 strings.

Synopsis


#include <libxfce4util/libxfce4util.h>


gchar*      xfce_utf8_remove_controls       (gchar *str,
                                             gssize max_len,
                                             const gchar *end);
gchar*      xfce_utf8_strndup               (const gchar *src,
                                             gssize max_len);

Description

Details

xfce_utf8_remove_controls ()

gchar*      xfce_utf8_remove_controls       (gchar *str,
                                             gssize max_len,
                                             const gchar *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.

<