Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp

Issue 1428763002: Merge to XFA: Add PDFCharIsLineEnding helper (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
index e8842888c8f7e6390bebdcfd6ae13005384d9f4c..4ce196e90d0f9b09a116cba7e9cf05843cb41df2 100644
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
@@ -1780,7 +1780,7 @@ void CPDF_SyntaxParser::GetNextWord() {
while (1) {
if (!GetNextChar(ch))
return;
- if (ch == '\r' || ch == '\n')
+ if (PDFCharIsLineEnding(ch))
break;
}
}
@@ -1999,7 +1999,7 @@ void CPDF_SyntaxParser::ToNextWord() {
while (1) {
if (!GetNextChar(ch))
return;
- if (ch == '\r' || ch == '\n')
+ if (PDFCharIsLineEnding(ch))
break;
}
}
@@ -3767,7 +3767,7 @@ FX_BOOL CPDF_DataAvail::GetNextToken(CFX_ByteString& token) {
while (1) {
if (!GetNextChar(ch))
return FALSE;
- if (ch == '\r' || ch == '\n')
+ if (PDFCharIsLineEnding(ch))
break;
}
}
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698