Speed up luhn algorithm and add multimatching capabilities to verifyCC. See #69.

This commit is contained in:
brectanus
2007-12-12 01:30:58 +00:00
parent 423fd0eea2
commit 2dff0fb9f5
3 changed files with 100 additions and 77 deletions

View File

@@ -28,6 +28,9 @@ apr_status_t DSOLOCAL msc_pcre_cleanup(msc_regex_t *regex);
void DSOLOCAL *msc_pregcomp(apr_pool_t *pool, const char *pattern, int options,
const char **_errptr, int *_erroffset);
int DSOLOCAL msc_regexec_ex(msc_regex_t *regex, const char *s, unsigned int slen,
int startoffset, int options, int *ovector, int ovecsize, char **error_msg);
int DSOLOCAL msc_regexec_capture(msc_regex_t *regex, const char *s,
unsigned int slen, int *ovector, int ovecsize, char **error_msg);