diff options
Diffstat (limited to 'libqpdf/qpdf/PCRE.hh')
-rw-r--r-- | libqpdf/qpdf/PCRE.hh | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libqpdf/qpdf/PCRE.hh b/libqpdf/qpdf/PCRE.hh index 8ffa0c19..2cf2bdcd 100644 --- a/libqpdf/qpdf/PCRE.hh +++ b/libqpdf/qpdf/PCRE.hh @@ -17,6 +17,7 @@ // Note: this class does not encapsulate all features of the PCRE // package -- only those that I actually need right now are here. +DLL_EXPORT class PCRE { public: @@ -25,7 +26,6 @@ class PCRE class NoBackref: public std::logic_error { public: - DLL_EXPORT NoBackref(); virtual ~NoBackref() throw() {} }; @@ -34,15 +34,10 @@ class PCRE { friend class PCRE; public: - DLL_EXPORT Match(int nbackrefs, char const* subject); - DLL_EXPORT Match(Match const&); - DLL_EXPORT Match& operator=(Match const&); - DLL_EXPORT ~Match(); - DLL_EXPORT operator bool(); // All the back reference accessing routines may throw the @@ -54,13 +49,9 @@ class PCRE // and not matching at all. // see getMatch flags below - DLL_EXPORT std::string getMatch(int n, int flags = 0); - DLL_EXPORT void getOffsetLength(int n, int& offset, int& length); - DLL_EXPORT int getOffset(int n); - DLL_EXPORT int getLength(int n); // nMatches returns the number of available matches including @@ -70,7 +61,6 @@ class PCRE // will return the whole string, getMatch(1) will return the // text that matched the backreference, and getMatch(2) will // throw an exception because it is out of range. - DLL_EXPORT int nMatches() const; // Flags for getMatch @@ -93,16 +83,12 @@ class PCRE // The value passed in as options is passed to pcre_exec. See man // pcreapi for details. - DLL_EXPORT PCRE(char const* pattern, int options = 0); - DLL_EXPORT ~PCRE(); - DLL_EXPORT Match match(char const* subject, int options = 0, int startoffset = 0, int size = -1); - DLL_EXPORT static void test(int n = 0); private: |