mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-10 23:20:58 +00:00
f3d7c26de1
git-svn-id: svn+q:///qpdf/trunk@709 71b93d88-0707-0410-a8cf-f5a4172ac649
31 lines
504 B
C++
31 lines
504 B
C++
#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& e)
|
|
{
|
|
std::cout << "0" << std::endl;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
if ((argc == 2) && (strcmp(argv[1], "--unicode-classes") == 0))
|
|
{
|
|
PCRE::test(1);
|
|
}
|
|
else
|
|
{
|
|
PCRE::test();
|
|
}
|
|
return 0;
|
|
}
|