mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
654db69b82
to allow usage of many character sets at a time. include/m_ctype.h: Added condition to simplify migrating from old ctype Added new style toupper, tolower which accepts charset in first argument regex/debug.c: Added charset argument regex/debug.ih: added charset argument regex/engine.c: added charset argument regex/engine.ih: added charset arguent regex/main.c: added charset argument regex/regcomp.c: added CHARSET_INFO field regex/regcomp.ih: Added charset argument regex/regex.h: Added #include <m_ctype.h> for CHARSET_INFO Added charset argument for regcomp() regex/regex2.h: New charset argument for ISWORD() regex/regexec.c: New charset argument regex/reginit.c: Move to new style ctype. However still needs fixes: instead of single static cclass variable, each charset must have it's own variable. sql/item_cmpfunc.cc: Pass charset field into regcomp() This will be fixed tommorow to use String->charset instead of default_charset_info
53 lines
2.7 KiB
Text
53 lines
2.7 KiB
Text
/* ========= begin header generated by ./mkh ========= */
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* === regcomp.c === */
|
|
static void p_ere(register struct parse *p, int stop);
|
|
static void p_ere_exp(register struct parse *p);
|
|
static void p_str(register struct parse *p);
|
|
static void p_bre(register struct parse *p, register int end1, register int end2);
|
|
static int p_simp_re(register struct parse *p, int starordinary);
|
|
static int p_count(register struct parse *p);
|
|
static void p_bracket(register struct parse *p);
|
|
static void p_b_term(register struct parse *p, register cset *cs);
|
|
static void p_b_cclass(register struct parse *p, register cset *cs);
|
|
static void p_b_eclass(register struct parse *p, register cset *cs);
|
|
static char p_b_symbol(register struct parse *p);
|
|
static char p_b_coll_elem(register struct parse *p, int endc);
|
|
static char othercase(CHARSET_INFO *charset,int ch);
|
|
static void bothcases(register struct parse *p, int ch);
|
|
static void ordinary(register struct parse *p, register int ch);
|
|
static void nonnewline(register struct parse *p);
|
|
static void repeat(register struct parse *p, sopno start, int from, int to);
|
|
static int seterr(register struct parse *p, int e);
|
|
static cset *allocset(register struct parse *p);
|
|
static void freeset(register struct parse *p, register cset *cs);
|
|
static int freezeset(register struct parse *p, register cset *cs);
|
|
static int firstch(register struct parse *p, register cset *cs);
|
|
static int nch(register struct parse *p, register cset *cs);
|
|
static void mcadd(register struct parse *p, register cset *cs, register char *cp);
|
|
#ifdef NOT_USED
|
|
static void mcsub(register cset *cs, register char *cp);
|
|
static int mcin(register cset *cs, register char *cp);
|
|
static char *mcfind(register cset *cs, register char *cp);
|
|
#endif
|
|
static void mcinvert(register struct parse *p, register cset *cs);
|
|
static void mccase(register struct parse *p, register cset *cs);
|
|
static int isinsets(register struct re_guts *g, int c);
|
|
static int samesets(register struct re_guts *g, int c1, int c2);
|
|
static void categorize(struct parse *p, register struct re_guts *g);
|
|
static sopno dupl(register struct parse *p, sopno start, sopno finish);
|
|
static void doemit(register struct parse *p, sop op, size_t opnd);
|
|
static void doinsert(register struct parse *p, sop op, size_t opnd, sopno pos);
|
|
static void dofwd(register struct parse *p, sopno pos, sop value);
|
|
static void enlarge(register struct parse *p, sopno size);
|
|
static void stripsnug(register struct parse *p, register struct re_guts *g);
|
|
static void findmust(register struct parse *p, register struct re_guts *g);
|
|
static sopno pluscount(register struct parse *p, register struct re_guts *g);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
/* ========= end header generated by ./mkh ========= */
|