diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-12 03:15:55 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-12 03:15:55 +0200 |
commit | 44cbd3d4b477f855d46259f7fbc743c0b96c7678 (patch) | |
tree | 9494d086d2720da5339cf832b82a913e2c0332d9 /libqpdf/PCRE.cc | |
parent | 3444a5a52ad2d2eec89265498b7f6b76b7c5b2fa (diff) | |
download | qpdf-44cbd3d4b477f855d46259f7fbc743c0b96c7678.tar.zst |
do DLL_EXPORT only in header files and only at the class or top-level function level
git-svn-id: svn+q:///qpdf/trunk@796 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/PCRE.cc')
-rw-r--r-- | libqpdf/PCRE.cc | 15 |
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) { |