| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 XFA_FGAS_CRT_FGAS_CODEPAGE_H_ | 7 #ifndef XFA_FGAS_CRT_FGAS_CODEPAGE_H_ |
| 8 #define XFA_FGAS_CRT_FGAS_CODEPAGE_H_ | 8 #define XFA_FGAS_CRT_FGAS_CODEPAGE_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #define FX_CHARSET_ArabicUser 180 | 127 #define FX_CHARSET_ArabicUser 180 |
| 128 #define FX_CHARSET_HebrewUser 181 | 128 #define FX_CHARSET_HebrewUser 181 |
| 129 #define FX_CHARSET_MSWin_Baltic 186 | 129 #define FX_CHARSET_MSWin_Baltic 186 |
| 130 #define FX_CHARSET_MSWin_Cyrillic 204 | 130 #define FX_CHARSET_MSWin_Cyrillic 204 |
| 131 #define FX_CHARSET_Thai 222 | 131 #define FX_CHARSET_Thai 222 |
| 132 #define FX_CHARSET_MSWin_EasterEuropean 238 | 132 #define FX_CHARSET_MSWin_EasterEuropean 238 |
| 133 #define FX_CHARSET_US 254 | 133 #define FX_CHARSET_US 254 |
| 134 #define FX_CHARSET_OEM 255 | 134 #define FX_CHARSET_OEM 255 |
| 135 | 135 |
| 136 uint16_t FX_GetCodePageFromCharset(uint8_t charset); | 136 uint16_t FX_GetCodePageFromCharset(uint8_t charset); |
| 137 uint16_t FX_GetCharsetFromCodePage(uint16_t codepage); | |
| 138 uint16_t FX_GetCodePageFromStringW(const FX_WCHAR* pStr, int32_t iLength); | 137 uint16_t FX_GetCodePageFromStringW(const FX_WCHAR* pStr, int32_t iLength); |
| 139 uint16_t FX_GetDefCodePageByLanguage(uint16_t wLanguage); | 138 uint16_t FX_GetDefCodePageByLanguage(uint16_t wLanguage); |
| 140 void FX_SwapByteOrder(FX_WCHAR* pStr, int32_t iLength); | 139 void FX_SwapByteOrder(FX_WCHAR* pStr, int32_t iLength); |
| 141 | 140 |
| 142 void FX_UTF16ToWChar(void* pBuffer, int32_t iLength); | 141 void FX_UTF16ToWChar(void* pBuffer, int32_t iLength); |
| 143 void FX_WCharToUTF16(void* pBuffer, int32_t iLength); | |
| 144 int32_t FX_DecodeString(uint16_t wCodePage, | 142 int32_t FX_DecodeString(uint16_t wCodePage, |
| 145 const FX_CHAR* pSrc, | 143 const FX_CHAR* pSrc, |
| 146 int32_t* pSrcLen, | 144 int32_t* pSrcLen, |
| 147 FX_WCHAR* pDst, | 145 FX_WCHAR* pDst, |
| 148 int32_t* pDstLen, | 146 int32_t* pDstLen, |
| 149 FX_BOOL bErrBreak = FALSE); | 147 FX_BOOL bErrBreak); |
| 150 int32_t FX_UTF8Decode(const FX_CHAR* pSrc, | 148 int32_t FX_UTF8Decode(const FX_CHAR* pSrc, |
| 151 int32_t* pSrcLen, | 149 int32_t* pSrcLen, |
| 152 FX_WCHAR* pDst, | 150 FX_WCHAR* pDst, |
| 153 int32_t* pDstLen); | 151 int32_t* pDstLen); |
| 154 | 152 |
| 155 #endif // XFA_FGAS_CRT_FGAS_CODEPAGE_H_ | 153 #endif // XFA_FGAS_CRT_FGAS_CODEPAGE_H_ |
| OLD | NEW |