diff options
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.cpp b/core/fpdfapi/parser/cpdf_syntax_parser.cpp index c3ebbdaee9..f7c79bc950 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.cpp +++ b/core/fpdfapi/parser/cpdf_syntax_parser.cpp @@ -125,27 +125,11 @@ void CPDF_SyntaxParser::GetNextWordInternal(bool* bIsNumber) { if (bIsNumber) *bIsNumber = true; + ToNextWord(); uint8_t ch; if (!GetNextChar(ch)) return; - while (1) { - while (PDFCharIsWhitespace(ch)) { - if (!GetNextChar(ch)) - return; - } - - if (ch != '%') - break; - - while (1) { - if (!GetNextChar(ch)) - return; - if (PDFCharIsLineEnding(ch)) - break; - } - } - if (PDFCharIsDelimiter(ch)) { if (bIsNumber) *bIsNumber = false; |