Skip to content

Instantly share code, notes, and snippets.

@andyarvanitis
Created April 17, 2018 03:17
Show Gist options
  • Save andyarvanitis/7f72cdf1786a3767ae53d8f3e954b5c5 to your computer and use it in GitHub Desktop.
Save andyarvanitis/7f72cdf1786a3767ae53d8f3e954b5c5 to your computer and use it in GitHub Desktop.
#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