summaryrefslogtreecommitdiff
path: root/utils/testregexp.cc
diff options
context:
space:
mode:
authorchatty2000-11-28 14:19:34 +0000
committerchatty2000-11-28 14:19:34 +0000
commit09f57c8dffd9a8ba0983cce13381aef716f43801 (patch)
tree49c5faa7cd1b76eea36169b5ecce09411b2802c2 /utils/testregexp.cc
parent2575756ec6f41bd05bf4505ccc0253fad0ed77c4 (diff)
downloadivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.zip
ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.gz
ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.bz2
ivy-league-09f57c8dffd9a8ba0983cce13381aef716f43801.tar.xz
*** empty log message ***
Diffstat (limited to 'utils/testregexp.cc')
-rw-r--r--utils/testregexp.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/testregexp.cc b/utils/testregexp.cc
new file mode 100644
index 0000000..5949ec8
--- /dev/null
+++ b/utils/testregexp.cc
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include "RegExp.h"
+
+
+main (int argc, char** argv)
+{
+ char* s = "toto";
+ char* s1 = "tota toto";
+ if (argc > 1)
+ s1 = argv[1];
+ CcuRegExp re = s;
+ if (re.Compile ()) {
+ if (re.Match (s1))
+ printf ("%s\n",s1);
+ }
+}