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