glib/glib/pcre/pcre_valid_utf8.c
Marco Barisione 0196d63975 Add GRegex for regular expression matching. (#50075)
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
2007-03-15 13:01:31 +00:00

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;
}