diff options
Diffstat (limited to 'gir/glib-2.0.c')
-rw-r--r-- | gir/glib-2.0.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gir/glib-2.0.c b/gir/glib-2.0.c index 9e0b51b6..9ecf5adb 100644 --- a/gir/glib-2.0.c +++ b/gir/glib-2.0.c @@ -1925,7 +1925,7 @@ * 'built' terminology that automake uses and are explicitly used to * distinguish between the 'srcdir' and 'builddir' being separate. All * files in your project should either be dist (in the - * `DIST_EXTRA` or `dist_schema_DATA` + * `EXTRA_DIST` or `dist_schema_DATA` * sense, in which case they will always be in the srcdir) or built (in * the `BUILT_SOURCES` sense, in which case they will * always be in the builddir). @@ -33190,6 +33190,25 @@ /** + * g_utf8_make_valid: + * @str: string to coerce into UTF-8 + * + * If the provided string is valid UTF-8, return a copy of it. If not, + * return a copy in which bytes that could not be interpreted as valid Unicode + * are replaced with the Unicode replacement character (U+FFFD). + * + * For example, this is an appropriate function to use if you have received + * a string that was incorrectly declared to be UTF-8, and you need a valid + * UTF-8 version of it that can be logged or displayed to the user, with the + * assumption that it is close enough to ASCII or UTF-8 to be mostly + * readable as-is. + * + * Returns: (transfer full): a valid UTF-8 string whose content resembles @str + * Since: 2.52 + */ + + +/** * g_utf8_normalize: * @str: a UTF-8 encoded string. * @len: length of @str, in bytes, or -1 if @str is nul-terminated. |