remove putBack and make skip go via skipChar
This commit is contained in:
parent
ac17a847d0
commit
056a81ee89
6
pdf.js
6
pdf.js
@ -39,14 +39,12 @@ var Stream = (function() {
|
|||||||
this.pos++;
|
this.pos++;
|
||||||
return ch;
|
return ch;
|
||||||
},
|
},
|
||||||
putBack: function() {
|
|
||||||
this.pos--;
|
|
||||||
},
|
|
||||||
skipChar: function() {
|
skipChar: function() {
|
||||||
this.pos++;
|
this.pos++;
|
||||||
},
|
},
|
||||||
skip: function(n) {
|
skip: function(n) {
|
||||||
this.pos += n;
|
while (n-- > 0)
|
||||||
|
this.skipChar();
|
||||||
},
|
},
|
||||||
moveStart: function() {
|
moveStart: function() {
|
||||||
this.start = this.pos;
|
this.start = this.pos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user