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

Side by Side Diff: xfa/fxfa/parser/xfa_utils_imp.cpp

Issue 1857713003: Rename GetCStr and GetPtr to match CFX_ByteString (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 8 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/fxfa/parser/xfa_script_resolveprocessor.cpp ('k') | xfa/fxjse/dynprop.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 "xfa/fxfa/parser/xfa_utils.h" 7 #include "xfa/fxfa/parser/xfa_utils.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fde/xml/fde_xml_imp.h" 10 #include "xfa/fde/xml/fde_xml_imp.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 FX_DOUBLE dValue = (dwFractional / 4294967296.0); 386 FX_DOUBLE dValue = (dwFractional / 4294967296.0);
387 dValue = nIntegral + (nIntegral >= 0 ? dValue : -dValue); 387 dValue = nIntegral + (nIntegral >= 0 ? dValue : -dValue);
388 if (nExponent != 0) { 388 if (nExponent != 0) {
389 dValue *= FXSYS_pow(10, (FX_FLOAT)nExponent); 389 dValue *= FXSYS_pow(10, (FX_FLOAT)nExponent);
390 } 390 }
391 return dValue; 391 return dValue;
392 } 392 }
393 393
394 FX_DOUBLE XFA_ByteStringToDouble(const CFX_ByteStringC& szStringVal) { 394 FX_DOUBLE XFA_ByteStringToDouble(const CFX_ByteStringC& szStringVal) {
395 CFX_WideString wsValue = 395 CFX_WideString wsValue =
396 CFX_WideString::FromUTF8(szStringVal.GetCStr(), szStringVal.GetLength()); 396 CFX_WideString::FromUTF8(szStringVal.c_str(), szStringVal.GetLength());
397 return XFA_WideStringToDouble(wsValue); 397 return XFA_WideStringToDouble(wsValue);
398 } 398 }
399 399
400 int32_t XFA_MapRotation(int32_t nRotation) { 400 int32_t XFA_MapRotation(int32_t nRotation) {
401 nRotation = nRotation % 360; 401 nRotation = nRotation % 360;
402 nRotation = nRotation < 0 ? nRotation + 360 : nRotation; 402 nRotation = nRotation < 0 ? nRotation + 360 : nRotation;
403 return nRotation; 403 return nRotation;
404 } 404 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_resolveprocessor.cpp ('k') | xfa/fxjse/dynprop.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698