aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/pcre.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-11 02:24:16 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-11 03:30:32 +0200
commit9a96e233b051b31289c84f90a321583887b1400a (patch)
tree233f0f9ad9c257b80f13734698e97ba842a59799 /libtests/pcre.cc
parent30f109e244f365111d5219903f13d64cf1a95054 (diff)
downloadqpdf-9a96e233b051b31289c84f90a321583887b1400a.tar.zst
Remove PCRE
Diffstat (limited to 'libtests/pcre.cc')
-rw-r--r--libtests/pcre.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/libtests/pcre.cc b/libtests/pcre.cc
deleted file mode 100644
index 8b09665a..00000000
--- a/libtests/pcre.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-#include <qpdf/PCRE.hh>
-#include <iostream>
-#include <string.h>
-
-int main(int argc, char* argv[])
-{
- if ((argc == 2) && (strcmp(argv[1], "--unicode-classes-supported") == 0))
- {
- try
- {
- PCRE("^([\\p{L}]+)", PCRE_UTF8);
- std::cout << "1" << std::endl;
- }
- catch (std::exception&)
- {
- std::cout << "0" << std::endl;
- }
- return 0;
- }
-
- if ((argc == 2) && (strcmp(argv[1], "--unicode-classes") == 0))
- {
- PCRE::test(1);
- }
- else
- {
- PCRE::test();
- }
- return 0;
-}