forked from moovweb/rubex
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from go-enry/threadsafe-2
*: thread-safe regexp without locks
- Loading branch information
Showing
4 changed files
with
125 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#include <oniguruma.h> | ||
|
||
extern int NewOnigRegex( char *pattern, int pattern_length, int option, | ||
OnigRegex *regex, OnigRegion **region, OnigEncoding *encoding, OnigErrorInfo **error_info, char **error_buffer); | ||
OnigRegex *regex, OnigEncoding *encoding, OnigErrorInfo **error_info, char **error_buffer); | ||
|
||
extern int SearchOnigRegex( void *str, int str_length, int offset, int option, | ||
OnigRegex regex, OnigRegion *region, OnigErrorInfo *error_info, char *error_buffer, int *captures, int *numCaptures); | ||
OnigRegex regex, OnigErrorInfo *error_info, char *error_buffer, int *captures, int *numCaptures); | ||
|
||
extern int MatchOnigRegex( void *str, int str_length, int offset, int option, | ||
OnigRegex regex, OnigRegion *region); | ||
OnigRegex regex); | ||
|
||
extern int LookupOnigCaptureByName(char *name, int name_length, OnigRegex regex, OnigRegion *region); | ||
extern int LookupOnigCaptureByName(char *name, int name_length, OnigRegex regex); | ||
|
||
extern int GetCaptureNames(OnigRegex regex, void *buffer, int bufferSize, int* groupNumbers); |
Oops, something went wrong.