mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-01 02:16:14 +01:00
0196d63975
2007-03-15 Marco Barisione <marco@barisione.org> Add GRegex for regular expression matching. (#50075) * configure.in: Handle GRegex compilation. * glib/gregex.c: * glib/gregex.h: Code for GRegex. * glib/Makefile.am: * glib/makefile.msc.in: Updated makefiles. * glib/pcre/*: Internal copy of PCRE. * glib/update-pcre/*: Stuff to automatically update the internal PCRE to a newer version. * tests/regex-test.c: * tests/Makefile.am: * tests/makefile.msc.in: Add tests for GRegex. svn path=/trunk/; revision=5408
14 lines
309 B
C
14 lines
309 B
C
#include "pcre_internal.h"
|
|
|
|
/*
|
|
* This function is not needed by GRegex, so print an error and
|
|
* return always -1, that is the string is a valid UTF-8 encoded
|
|
* string.
|
|
*/
|
|
int
|
|
_pcre_valid_utf8(const uschar *string, int length)
|
|
{
|
|
g_warning ("%s: this function should not be called", G_STRLOC);
|
|
return -1;
|
|
}
|