diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-16 19:22:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-16 19:22:57 +0000 |
commit | a7b15598587d5bd04a086a8007327f06c14119b4 (patch) | |
tree | 00f773b3cb4dcbcafb8ed278048684545a0da47c /core/fpdfapi/parser/fpdf_parser_utility.h | |
parent | 08a027cba39d5cb28dafd4280f1ad00c030f1ebf (diff) | |
download | pdfium-a7b15598587d5bd04a086a8007327f06c14119b4.tar.xz |
Put prototypes of PDF_NameEncode/Decode in fpdf_parser_utility.h
Because the implementations are in fpdf_parser_utility.cpp
Add unit test for both.
Change-Id: Ibae90ecbe625a035c450614ddbe7f5969f9f92aa
Reviewed-on: https://pdfium-review.googlesource.com/30793
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/fpdf_parser_utility.h')
-rw-r--r-- | core/fpdfapi/parser/fpdf_parser_utility.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/fpdf_parser_utility.h b/core/fpdfapi/parser/fpdf_parser_utility.h index e4b922cad2..3ae8f6f13f 100644 --- a/core/fpdfapi/parser/fpdf_parser_utility.h +++ b/core/fpdfapi/parser/fpdf_parser_utility.h @@ -7,6 +7,8 @@ #ifndef CORE_FPDFAPI_PARSER_FPDF_PARSER_UTILITY_H_ #define CORE_FPDFAPI_PARSER_FPDF_PARSER_UTILITY_H_ +#include <ostream> + #include "core/fxcrt/fx_string.h" #include "core/fxcrt/retain_ptr.h" @@ -43,6 +45,9 @@ int32_t GetHeaderOffset(const RetainPtr<IFX_SeekableReadStream>& pFile); int32_t GetDirectInteger(CPDF_Dictionary* pDict, const ByteString& key); +ByteString PDF_NameDecode(const ByteStringView& orig); +ByteString PDF_NameEncode(const ByteString& orig); + std::ostream& operator<<(std::ostream& buf, const CPDF_Object* pObj); #endif // CORE_FPDFAPI_PARSER_FPDF_PARSER_UTILITY_H_ |