From 54b9166366085b30b7ee3094c2b71cd36e377153 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Fri, 5 May 2017 16:49:30 -0400 Subject: Encode unicodes in UTF-16BE in ToUnicode map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: pdfium:667 Change-Id: I811571c334ff28162905a65781ca14f03caf2966 Reviewed-on: https://pdfium-review.googlesource.com/4910 Commit-Queue: Nicolás Peña Reviewed-by: Tom Sepez Reviewed-by: Lei Zhang --- core/fxcrt/fx_extension.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/fxcrt/fx_extension.h') diff --git a/core/fxcrt/fx_extension.h b/core/fxcrt/fx_extension.h index f55153c0ad..255ee2e3df 100644 --- a/core/fxcrt/fx_extension.h +++ b/core/fxcrt/fx_extension.h @@ -76,6 +76,12 @@ inline int FXSYS_DecimalCharToInt(const wchar_t c) { return std::iswdigit(c) ? c - L'0' : 0; } +void FXSYS_IntToTwoHexChars(uint8_t c, char* buf); + +void FXSYS_IntToFourHexChars(uint16_t c, char* buf); + +size_t FXSYS_ToUTF16BE(uint32_t unicode, char* buf); + float FXSYS_FractionalScale(size_t scale_factor, int value); int FXSYS_FractionalScaleCount(); -- cgit v1.2.3