2020-02-11 04:34:17 -05:00
|
|
|
#include <oniguruma.h>
|
|
|
|
|
|
|
|
extern int NewOnigRegex( char *pattern, int pattern_length, int option,
|
2020-05-29 02:20:01 -04:00
|
|
|
OnigRegex *regex, OnigEncoding *encoding, OnigErrorInfo **error_info, char **error_buffer);
|
2020-02-11 04:34:17 -05:00
|
|
|
|
|
|
|
extern int SearchOnigRegex( void *str, int str_length, int offset, int option,
|
2020-05-29 02:20:01 -04:00
|
|
|
OnigRegex regex, OnigErrorInfo *error_info, char *error_buffer, int *captures, int *numCaptures);
|
2020-02-11 04:34:17 -05:00
|
|
|
|
|
|
|
extern int MatchOnigRegex( void *str, int str_length, int offset, int option,
|
2020-05-29 02:20:01 -04:00
|
|
|
OnigRegex regex);
|
2020-02-11 04:34:17 -05:00
|
|
|
|
2020-05-29 02:20:01 -04:00
|
|
|
extern int LookupOnigCaptureByName(char *name, int name_length, OnigRegex regex);
|
2020-02-11 04:34:17 -05:00
|
|
|
|
|
|
|
extern int GetCaptureNames(OnigRegex regex, void *buffer, int bufferSize, int* groupNumbers);
|