Created
April 17, 2018 03:17
-
-
Save andyarvanitis/7f72cdf1786a3767ae53d8f3e954b5c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#ifndef MainFFI_HH | |
#define MainFFI_HH | |
#include <pcre.h> | |
#include "PureScript/PureScript.hh" | |
namespace Main { | |
using namespace PureScript; | |
enum { | |
caseless = PCRE_CASELESS, | |
dotall = PCRE_DOTALL | |
}; | |
auto compile( const char * pattern, const any::array& options ) -> any; | |
auto capturedCount( const any& code ) -> int; | |
auto exec( const any& code, | |
const char * subject, | |
int startoffset, | |
const any::array& options, | |
int ovecsize ) -> any; | |
} // namespace Main | |
#endif // MainFFI_HH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment