Commit Graph

29 Commits

Author SHA1 Message Date
Flaviu Tamas
efb4f7d89c Added some documentation 2015-01-12 21:06:25 -05:00
Flaviu Tamas
e0cdad635b Add findAllStr 2015-01-12 21:00:25 -05:00
Flaviu Tamas
1652cdbaff Unexpose implementation detail 2015-01-12 20:57:20 -05:00
Flaviu Tamas
c4cb781c3d Flip parameter string-pattern order 2015-01-12 20:56:34 -05:00
Flaviu Tamas
2474758ed5 Implement match, find, split 2015-01-12 20:09:19 -05:00
Flaviu Tamas
6fe0de0639 Fix incorrect check
pcre_study can return nil and still succeed
The indicator of failure is a non-nil error message
2015-01-10 20:54:36 -05:00
Flaviu Tamas
fb51221aa8 Expose the pattern string, rename some procs 2015-01-10 20:36:34 -05:00
Flaviu Tamas
d7dbf7e011 Rename exec(...) and extend it 2015-01-10 19:23:15 -05:00
Flaviu Tamas
4f4a7dfa5b Expose pattern and input string 2015-01-10 19:19:25 -05:00
Flaviu Tamas
ccf5771441 Allow u for unicode matching 2015-01-10 19:12:21 -05:00
Flaviu Tamas
0f4b142c75 Implement toTable(Captures), toSeq(Captures) 2015-01-10 19:10:43 -05:00
Flaviu Tamas
cc33942d89 Revert "Remove Option from exec(Regex, string, int)"
This reverts commit f692042bb8.
2015-01-10 18:00:07 -05:00
Flaviu Tamas
f692042bb8 Remove Option from exec(Regex, string, int) 2015-01-10 16:49:39 -05:00
Flaviu Tamas
0888b84126 Move some things around 2015-01-10 16:41:55 -05:00
Flaviu Tamas
48c29ac905 Add access to capture count and names 2015-01-10 16:39:51 -05:00
Flaviu Tamas
d2c20a32ed captureCount doesn't need to be exposed that way 2015-01-10 16:21:11 -05:00
Flaviu Tamas
721ea11628 Implement captures 2015-01-10 16:20:25 -05:00
Flaviu Tamas
2db1a54710 Implement regex execution 2015-01-10 14:11:43 -05:00
Flaviu Tamas
613d12c7bf Simplify thin wrapper 2015-01-10 13:31:13 -05:00
Flaviu Tamas
be984d3b07 Change test execution technique 2015-01-10 12:31:03 -05:00
Flaviu Tamas
ca4cf24299 Implement correct destruction 2015-01-10 12:30:43 -05:00
Flaviu Tamas
00b047a660 Implement foundation for named captures 2015-01-10 11:27:46 -05:00
Flaviu Tamas
bfba4b9983 Remove DUPNAMES option
It makes the rest of the implementation more complicated and is confusing
anyway. The user expects a 1:1 mapping between a match and a name
2015-01-10 08:16:09 -05:00
Flaviu Tamas
c4d536f581 Extend Regex, add RegexMatch 2015-01-10 08:14:49 -05:00
Flaviu Tamas
3a6e7941cf Fix typos 2015-01-09 20:07:33 -05:00
Flaviu Tamas
685e4a1f0b Add unit tests 2015-01-09 19:41:12 -05:00
Flaviu Tamas
dec2f9efa9 Implement regex initialization 2015-01-09 19:40:41 -05:00
Flaviu Tamas
b36ba634a6 Add thin PCRE wrapper 2015-01-09 19:26:12 -05:00
Flaviu Tamas
b22a3e8237 Initial Commit 2015-01-07 17:48:43 -05:00