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

Side by Side Diff: xfa/fxfa/parser/xfa_script_resolveprocessor.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_imp.cpp ('k') | xfa/fxfa/parser/xfa_utils_imp.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_script_resolveprocessor.h" 7 #include "xfa/fxfa/parser/xfa_script_resolveprocessor.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" 10 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 return 0; 529 return 0;
530 } 530 }
531 CFX_WideString& wsName = rnd.m_wsName; 531 CFX_WideString& wsName = rnd.m_wsName;
532 CFX_WideString& wsCondition = rnd.m_wsCondition; 532 CFX_WideString& wsCondition = rnd.m_wsCondition;
533 FX_WCHAR* pNameBuf = wsName.GetBuffer(iLength - nStart); 533 FX_WCHAR* pNameBuf = wsName.GetBuffer(iLength - nStart);
534 FX_WCHAR* pConditionBuf = wsCondition.GetBuffer(iLength - nStart); 534 FX_WCHAR* pConditionBuf = wsCondition.GetBuffer(iLength - nStart);
535 int32_t nNameCount = 0; 535 int32_t nNameCount = 0;
536 int32_t nConditionCount = 0; 536 int32_t nConditionCount = 0;
537 CFX_Int32Array stack; 537 CFX_Int32Array stack;
538 int32_t nType = -1; 538 int32_t nType = -1;
539 const FX_WCHAR* pSrc = wsExpression.GetPtr(); 539 const FX_WCHAR* pSrc = wsExpression.raw_str();
540 FX_WCHAR wPrev = 0, wCur; 540 FX_WCHAR wPrev = 0, wCur;
541 FX_BOOL bIsCondition = FALSE; 541 FX_BOOL bIsCondition = FALSE;
542 while (nStart < iLength) { 542 while (nStart < iLength) {
543 wCur = pSrc[nStart++]; 543 wCur = pSrc[nStart++];
544 if (wCur == '.') { 544 if (wCur == '.') {
545 if (wPrev == '\\') { 545 if (wPrev == '\\') {
546 pNameBuf[nNameCount - 1] = wPrev = '.'; 546 pNameBuf[nNameCount - 1] = wPrev = '.';
547 continue; 547 continue;
548 } 548 }
549 if (nNameCount == 0) { 549 if (nNameCount == 0) {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 if (m_pNodeHelper->XFA_CreateNode_ForCondition(wsNextCondition)) { 817 if (m_pNodeHelper->XFA_CreateNode_ForCondition(wsNextCondition)) {
818 if (m_pNodeHelper->m_eLastCreateType == XFA_ELEMENT_DataGroup) { 818 if (m_pNodeHelper->m_eLastCreateType == XFA_ELEMENT_DataGroup) {
819 iIndex = 0; 819 iIndex = 0;
820 } else { 820 } else {
821 iIndex = iCount - 1; 821 iIndex = iCount - 1;
822 } 822 }
823 } else { 823 } else {
824 iIndex = iCount - 1; 824 iIndex = iCount - 1;
825 } 825 }
826 } 826 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_imp.cpp ('k') | xfa/fxfa/parser/xfa_utils_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698