diff options
author | Jay Berkenbilt <ejb@ql.org> | 2017-08-06 14:42:01 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2017-08-11 03:30:32 +0200 |
commit | 296b679d6e3217cc112b7ed19b363b82356615ef (patch) | |
tree | 7cb9b3aa95c00da45cf1a7cf67a020c1ee54a6c9 /include/qpdf/FileInputSource.hh | |
parent | ef8ae5449dc30782451beba64fdd0af86e1cb931 (diff) | |
download | qpdf-296b679d6e3217cc112b7ed19b363b82356615ef.tar.zst |
Implement findFirst and findLast in InputSource
Preparing to refactor some pattern searching code to use these instead
of their own memchr loops. This should simplify the code that replaces
PCRE.
Diffstat (limited to 'include/qpdf/FileInputSource.hh')
-rw-r--r-- | include/qpdf/FileInputSource.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/qpdf/FileInputSource.hh b/include/qpdf/FileInputSource.hh index 64457365..3f0c05a9 100644 --- a/include/qpdf/FileInputSource.hh +++ b/include/qpdf/FileInputSource.hh @@ -14,16 +14,27 @@ class FileInputSource: public InputSource { public: + QPDF_DLL FileInputSource(); + QPDF_DLL void setFilename(char const* filename); + QPDF_DLL void setFile(char const* description, FILE* filep, bool close_file); + QPDF_DLL virtual ~FileInputSource(); + QPDF_DLL virtual qpdf_offset_t findAndSkipNextEOL(); + QPDF_DLL virtual std::string const& getName() const; + QPDF_DLL virtual qpdf_offset_t tell(); + QPDF_DLL virtual void seek(qpdf_offset_t offset, int whence); + QPDF_DLL virtual void rewind(); + QPDF_DLL virtual size_t read(char* buffer, size_t length); + QPDF_DLL virtual void unreadCh(char ch); private: |