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

Side by Side Diff: core/fpdfapi/fpdf_parser/fpdf_parser_utility.h

Issue 1977093002: Make CFX_ByteString(const CFX_ByteStringC&) explicit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase, nit Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FPDFAPI_FPDF_PARSER_FPDF_PARSER_UTILITY_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_FPDF_PARSER_UTILITY_H_
8 #define CORE_FPDFAPI_FPDF_PARSER_FPDF_PARSER_UTILITY_H_ 8 #define CORE_FPDFAPI_FPDF_PARSER_FPDF_PARSER_UTILITY_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 inline bool PDFCharIsOther(uint8_t c) { 28 inline bool PDFCharIsOther(uint8_t c) {
29 return PDF_CharType[c] == 'R'; 29 return PDF_CharType[c] == 'R';
30 } 30 }
31 31
32 inline bool PDFCharIsLineEnding(uint8_t c) { 32 inline bool PDFCharIsLineEnding(uint8_t c) {
33 return c == '\r' || c == '\n'; 33 return c == '\r' || c == '\n';
34 } 34 }
35 35
36 int32_t GetHeaderOffset(IFX_FileRead* pFile); 36 int32_t GetHeaderOffset(IFX_FileRead* pFile);
37 int32_t GetDirectInteger(CPDF_Dictionary* pDict, const CFX_ByteStringC& key); 37 int32_t GetDirectInteger(CPDF_Dictionary* pDict, const CFX_ByteString& key);
38 38
39 #endif // CORE_FPDFAPI_FPDF_PARSER_FPDF_PARSER_UTILITY_H_ 39 #endif // CORE_FPDFAPI_FPDF_PARSER_FPDF_PARSER_UTILITY_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp ('k') | core/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698