summaryrefslogtreecommitdiff
path: root/regex/regex.h
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-03-06 20:04:13 +0400
committerbar@gw.udmsearch.izhnet.ru <>2002-03-06 20:04:13 +0400
commit2eed4065503ac1feda16cf0bff49657980b9dd11 (patch)
treec6287ade2a44504c39beaf6f8b3da5437184fae4 /regex/regex.h
parent576c9b8167a20a2daec4bb1678ff707075c29ff8 (diff)
downloadmariadb-git-2eed4065503ac1feda16cf0bff49657980b9dd11.tar.gz
Regex library is switched to use new ctype tools
to allow usage of many character sets at a time.
Diffstat (limited to 'regex/regex.h')
-rw-r--r--regex/regex.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/regex/regex.h b/regex/regex.h
index 99a0077251e..1602f66d190 100644
--- a/regex/regex.h
+++ b/regex/regex.h
@@ -5,6 +5,8 @@
extern "C" {
#endif
+#include "m_ctype.h"
+
/* === regex2.h === */
#ifdef _WIN64
typedef __int64 regoff_t;
@@ -17,6 +19,7 @@ typedef struct {
size_t re_nsub; /* number of parenthesized subexpressions */
const char *re_endp; /* end pointer for REG_PEND */
struct re_guts *re_g; /* none of your business :-) */
+ CHARSET_INFO *charset; /* For ctype things */
} regex_t;
typedef struct {
regoff_t rm_so; /* start of match */
@@ -25,7 +28,7 @@ typedef struct {
/* === regcomp.c === */
-extern int regcomp(regex_t *, const char *, int);
+extern int regcomp(regex_t *, const char *, int, CHARSET_INFO *charset);
#define REG_BASIC 0000
#define REG_EXTENDED 0001
#define REG_ICASE 0002