Added new functions g_strstr_len, g_strrstr and g_strrstr_len

2001-06-08  Alex Larsson  <alexl@redhat.com>

	* gstrfuncs.[ch]:
	Added new functions g_strstr_len, g_strrstr and g_strrstr_len

	* tests/strfunc-test.c:
	Add some tests for the new functions.

	* gunicode.h:
	* gutf8.c:
	Add length argument to g_utf8_strchr and g_utf8_strrchr.
This commit is contained in:
Alex Larsson
2001-06-08 23:14:03 +00:00
committed by Alexander Larsson
parent 6858b5342f
commit 106fb627f1
17 changed files with 449 additions and 27 deletions

View File

@@ -188,10 +188,11 @@ gchar* g_utf8_strncpy (gchar *dest,
/* Find the UTF-8 character corresponding to ch, in string p. These
functions are equivalants to strchr and strrchr */
gchar* g_utf8_strchr (const gchar *p,
gint len,
gunichar c);
gchar* g_utf8_strrchr (const gchar *p,
gint len,
gunichar c);
gunichar2 *g_utf8_to_utf16 (const gchar *str,