aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/PCRE.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/PCRE.cc')
-rw-r--r--libqpdf/PCRE.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/libqpdf/PCRE.cc b/libqpdf/PCRE.cc
index 859c5c49..d381db3b 100644
--- a/libqpdf/PCRE.cc
+++ b/libqpdf/PCRE.cc
@@ -5,31 +5,26 @@
#include <iostream>
#include <string.h>
-DLL_EXPORT
PCRE::NoBackref::NoBackref() :
std::logic_error("PCRE error: no match")
{
}
-DLL_EXPORT
PCRE::Match::Match(int nbackrefs, char const* subject)
{
this->init(-1, nbackrefs, subject);
}
-DLL_EXPORT
PCRE::Match::~Match()
{
this->destroy();
}
-DLL_EXPORT
PCRE::Match::Match(Match const& rhs)
{
this->copy(rhs);
}
-DLL_EXPORT
PCRE::Match&
PCRE::Match::operator=(Match const& rhs)
{
@@ -72,13 +67,11 @@ PCRE::Match::destroy()
delete [] this->ovector;
}
-DLL_EXPORT
PCRE::Match::operator bool()
{
return (this->nmatches >= 0);
}
-DLL_EXPORT
std::string
PCRE::Match::getMatch(int n, int flags)
{
@@ -107,7 +100,6 @@ PCRE::Match::getMatch(int n, int flags)
return std::string(this->subject).substr(offset, length);
}
-DLL_EXPORT
void
PCRE::Match::getOffsetLength(int n, int& offset, int& length)
{
@@ -121,7 +113,6 @@ PCRE::Match::getOffsetLength(int n, int& offset, int& length)
length = this->ovector[n * 2 + 1] - offset;
}
-DLL_EXPORT
int
PCRE::Match::getOffset(int n)
{
@@ -131,7 +122,6 @@ PCRE::Match::getOffset(int n)
return offset;
}
-DLL_EXPORT
int
PCRE::Match::getLength(int n)
{
@@ -141,14 +131,12 @@ PCRE::Match::getLength(int n)
return length;
}
-DLL_EXPORT
int
PCRE::Match::nMatches() const
{
return this->nmatches;
}
-DLL_EXPORT
PCRE::PCRE(char const* pattern, int options)
{
char const *errptr;
@@ -168,13 +156,11 @@ PCRE::PCRE(char const* pattern, int options)
}
}
-DLL_EXPORT
PCRE::~PCRE()
{
pcre_free(this->code);
}
-DLL_EXPORT
PCRE::Match
PCRE::match(char const* subject, int options, int startoffset, int size)
{
@@ -222,7 +208,6 @@ PCRE::match(char const* subject, int options, int startoffset, int size)
return result;
}
-DLL_EXPORT
void
PCRE::test(int n)
{