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

Side by Side Diff: xfa/fgas/crt/fgas_codepage.cpp

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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
« no previous file with comments | « xfa/fgas/crt/fgas_codepage.h ('k') | xfa/fgas/crt/fgas_encode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "core/include/fxcrt/fx_ext.h" 7 #include "core/include/fxcrt/fx_ext.h"
8 #include "xfa/src/fgas/crt/fgas_codepage.h" 8 #include "xfa/fgas/crt/fgas_codepage.h"
9 #include "xfa/src/fgas/crt/fgas_language.h" 9 #include "xfa/fgas/crt/fgas_language.h"
10 10
11 static const FX_CHARSET_MAP g_FXCharset2CodePageTable[] = { 11 static const FX_CHARSET_MAP g_FXCharset2CodePageTable[] = {
12 {0, 1252}, {1, 0}, {2, 42}, {77, 10000}, {78, 10001}, 12 {0, 1252}, {1, 0}, {2, 42}, {77, 10000}, {78, 10001},
13 {79, 10003}, {80, 10008}, {81, 10002}, {83, 10005}, {84, 10004}, 13 {79, 10003}, {80, 10008}, {81, 10002}, {83, 10005}, {84, 10004},
14 {85, 10006}, {86, 10081}, {87, 10021}, {88, 10029}, {89, 10007}, 14 {85, 10006}, {86, 10081}, {87, 10021}, {88, 10029}, {89, 10007},
15 {128, 932}, {129, 949}, {130, 1361}, {134, 936}, {136, 950}, 15 {128, 932}, {129, 949}, {130, 1361}, {134, 936}, {136, 950},
16 {161, 1253}, {162, 1254}, {163, 1258}, {177, 1255}, {178, 1256}, 16 {161, 1253}, {162, 1254}, {163, 1258}, {177, 1255}, {178, 1256},
17 {186, 1257}, {204, 1251}, {222, 874}, {238, 1250}, {254, 437}, 17 {186, 1257}, {204, 1251}, {222, 874}, {238, 1250}, {254, 437},
18 {255, 850}, 18 {255, 850},
19 }; 19 };
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return 0xFFFF; 334 return 0xFFFF;
335 } 335 }
336 CFX_ByteString csStr; 336 CFX_ByteString csStr;
337 FX_CHAR* pBuf = csStr.GetBuffer(iLength + 1); 337 FX_CHAR* pBuf = csStr.GetBuffer(iLength + 1);
338 for (int32_t i = 0; i < iLength; ++i) { 338 for (int32_t i = 0; i < iLength; ++i) {
339 *pBuf++ = (FX_CHAR)*pStr++; 339 *pBuf++ = (FX_CHAR)*pStr++;
340 } 340 }
341 csStr.ReleaseBuffer(iLength); 341 csStr.ReleaseBuffer(iLength);
342 return FX_GetCodePageFromStringA(csStr, iLength); 342 return FX_GetCodePageFromStringA(csStr, iLength);
343 } 343 }
OLDNEW
« no previous file with comments | « xfa/fgas/crt/fgas_codepage.h ('k') | xfa/fgas/crt/fgas_encode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698