summaryrefslogtreecommitdiff
path: root/src/lib.urp
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2015-07-03 15:52:18 -0400
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2015-07-03 15:52:18 -0400
commit0bfe054e0e93cf0c0a19f63eb2cfb6b4afd88ef7 (patch)
tree20a54465fd62d3b0e7231b69f55e14eb438d3cca /src/lib.urp
Initial commit of the regex matcher
Wrap glibc’s regex engine to allow matching and group capture in POSIX extended regular expressions. It might be worth rewriting this in terms of the C++11 regex engine; it’s more featureful and more pleasant to use, although it would require more casting. (C can’t represent the std::regex type, so I’d need to use some void pointers.)
Diffstat (limited to 'src/lib.urp')
-rw-r--r--src/lib.urp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.urp b/src/lib.urp
new file mode 100644
index 0000000..9f95450
--- /dev/null
+++ b/src/lib.urp
@@ -0,0 +1,5 @@
+ffi regex__FFI
+include regex__FFI.h
+link -lurweb_regex
+
+regex \ No newline at end of file