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