mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 20:29:21 +02:00
Unicode: add a g_utf8_substring convenience api
This function is useful in the GTK+ accessibility implementations, and seems like a nice thing to have around in general.
This commit is contained in:
@@ -312,8 +312,12 @@ gchar* g_utf8_find_next_char (const gchar *p,
|
||||
gchar* g_utf8_find_prev_char (const gchar *str,
|
||||
const gchar *p) G_GNUC_PURE;
|
||||
|
||||
glong g_utf8_strlen (const gchar *p,
|
||||
gssize max) G_GNUC_PURE;
|
||||
glong g_utf8_strlen (const gchar *p,
|
||||
gssize max) G_GNUC_PURE;
|
||||
|
||||
gchar *g_utf8_substring (const gchar *p,
|
||||
glong start_pos,
|
||||
glong end_pos) G_GNUC_MALLOC;
|
||||
|
||||
/* Copies n characters from src to dest */
|
||||
gchar* g_utf8_strncpy (gchar *dest,
|
||||
|
Reference in New Issue
Block a user