summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2011-09-05 23:20:44 +0200
committerAlbert Astals Cid <aacid@kde.org>2011-09-05 23:20:44 +0200
commitea2acac1533312f1f5bc4b86421c54f5500f4f33 (patch)
tree99c4b512b2e6617a8e55c2eba4251f53c0e9fb04
parent49767ffdf311848cc154ab706fb407c5d0bebe84 (diff)
Add BufStream
-rw-r--r--ALL_DIFF83
1 files changed, 0 insertions, 83 deletions
diff --git a/ALL_DIFF b/ALL_DIFF
index df03316..9943290 100644
--- a/ALL_DIFF
+++ b/ALL_DIFF
@@ -24054,59 +24054,6 @@ diff -ru xpdf-3.02/xpdf/Stream.cc xpdf-3.03/xpdf/Stream.cc
GString *s;
if (psLevel < 3 || pred) {
-@@ -4346,6 +4644,52 @@
- }
-
- //------------------------------------------------------------------------
-+// BufStream
-+//------------------------------------------------------------------------
-+
-+BufStream::BufStream(Stream *strA, int bufSizeA): FilterStream(strA) {
-+ bufSize = bufSizeA;
-+ buf = (int *)gmallocn(bufSize, sizeof(int));
-+}
-+
-+BufStream::~BufStream() {
-+ gfree(buf);
-+ delete str;
-+}
-+
-+void BufStream::reset() {
-+ int i;
-+
-+ str->reset();
-+ for (i = 0; i < bufSize; ++i) {
-+ buf[i] = str->getChar();
-+ }
-+}
-+
-+int BufStream::getChar() {
-+ int c, i;
-+
-+ c = buf[0];
-+ for (i = 1; i < bufSize; ++i) {
-+ buf[i-1] = buf[i];
-+ }
-+ buf[bufSize - 1] = str->getChar();
-+ return c;
-+}
-+
-+int BufStream::lookChar() {
-+ return buf[0];
-+}
-+
-+int BufStream::lookChar(int idx) {
-+ return buf[idx];
-+}
-+
-+GBool BufStream::isBinary(GBool last) {
-+ return str->isBinary(gTrue);
-+}
-+
-+//------------------------------------------------------------------------
- // FixedLengthEncoder
- //------------------------------------------------------------------------
-
diff -ru xpdf-3.02/xpdf/Stream.h xpdf-3.03/xpdf/Stream.h
--- xpdf-3.02/xpdf/Stream.h 2007-02-27 23:05:52.000000000 +0100
+++ xpdf-3.03/xpdf/Stream.h 2011-08-15 23:08:53.000000000 +0200
@@ -24200,36 +24147,6 @@ diff -ru xpdf-3.02/xpdf/Stream.h xpdf-3.03/xpdf/Stream.h
{ return NULL; }
virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
};
-
- //------------------------------------------------------------------------
-+// BufStream
-+//------------------------------------------------------------------------
-+
-+class BufStream: public FilterStream {
-+public:
-+
-+ BufStream(Stream *strA, int bufSizeA);
-+ virtual ~BufStream();
-+ virtual StreamKind getKind() { return strWeird; }
-+ virtual void reset();
-+ virtual int getChar();
-+ virtual int lookChar();
-+ virtual GString *getPSFilter(int psLevel, const char *indent)
-+ { return NULL; }
-+ virtual GBool isBinary(GBool last = gTrue);
-+
-+ int lookChar(int idx);
-+
-+private:
-+
-+ int *buf;
-+ int bufSize;
-+};
-+
-+//------------------------------------------------------------------------
- // FixedLengthEncoder
- //------------------------------------------------------------------------
-
diff -ru xpdf-3.02/xpdf/TextOutputDev.cc xpdf-3.03/xpdf/TextOutputDev.cc
--- xpdf-3.02/xpdf/TextOutputDev.cc 2007-02-27 23:05:52.000000000 +0100
+++ xpdf-3.03/xpdf/TextOutputDev.cc 2011-08-15 23:08:53.000000000 +0200