X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0a7edde10fbc1d280ea1864e34db865e09d4e7d..b9b8a2b5d79c50af78720589dc96cd7e16cde26e:/src/regex/regcomp.c diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index a84b939944..69f9517447 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -178,16 +178,16 @@ static struct cvec *getcvec(struct vars *, int, int, int); static void freecvec(struct cvec *); /* === regc_locale.c === */ -static int wx_isdigit(wx_wchar c); -static int wx_isalpha(wx_wchar c); -static int wx_isalnum(wx_wchar c); -static int wx_isupper(wx_wchar c); -static int wx_islower(wx_wchar c); -static int wx_isgraph(wx_wchar c); -static int wx_ispunct(wx_wchar c); -static int wx_isspace(wx_wchar c); -static wx_wchar wx_toupper(wx_wchar c); -static wx_wchar wx_tolower(wx_wchar c); +extern int wx_isdigit(wx_wchar c); +extern int wx_isalpha(wx_wchar c); +extern int wx_isalnum(wx_wchar c); +extern int wx_isupper(wx_wchar c); +extern int wx_islower(wx_wchar c); +extern int wx_isgraph(wx_wchar c); +extern int wx_ispunct(wx_wchar c); +extern int wx_isspace(wx_wchar c); +extern wx_wchar wx_toupper(wx_wchar c); +extern wx_wchar wx_tolower(wx_wchar c); static int nmcces(struct vars *); static int nleaders(struct vars *); static struct cvec *allmcces(struct vars *, struct cvec *); @@ -296,18 +296,7 @@ regcomp(regex_t *re, const chr *string, int flags) { - - size_t nLen = 0; - chr* s2 = (chr*) string; - - if (string && *string) - { - while(*++s2); - } - - nLen = ((s2 - string) / sizeof(chr)); - - return wx_regcomp(re, string, nLen, flags); + return wx_regcomp(re, string, wx_strlen(string), flags); } int wx_regcomp(regex_t *re,