本文整理汇总了C++中FX_WSTRC函数的典型用法代码示例。如果您正苦于以下问题:C++ FX_WSTRC函数的具体用法?C++ FX_WSTRC怎么用?C++ FX_WSTRC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FX_WSTRC函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: FXSYS_assert
void CXFA_ResolveProcessor::XFA_ResolveNode_DoPredicateFilter(
int32_t iCurIndex,
CFX_WideString wsCondition,
int32_t iFoundCount,
CXFA_ResolveNodesData& rnd) {
CXFA_NodeArray& findNodes = (CXFA_NodeArray&)rnd.m_Nodes;
FXSYS_assert(iFoundCount == findNodes.GetSize());
CFX_WideString wsExpression;
IXFA_ScriptContext* pContext = NULL;
XFA_SCRIPTLANGTYPE eLangType = XFA_SCRIPTLANGTYPE_Unkown;
if (wsCondition.Left(2) == FX_WSTRC(L".[") &&
wsCondition.Right(1) == FX_WSTRC(L"]")) {
eLangType = XFA_SCRIPTLANGTYPE_Formcalc;
} else if (wsCondition.Left(2) == FX_WSTRC(L".(") &&
wsCondition.Right(1) == FX_WSTRC(L")")) {
eLangType = XFA_SCRIPTLANGTYPE_Javascript;
} else {
return;
}
pContext = rnd.m_pSC;
wsExpression = wsCondition.Mid(2, wsCondition.GetLength() - 3);
for (int32_t i = iFoundCount - 1; i >= 0; i--) {
CXFA_Object* node = findNodes[i];
FX_BOOL bRet = FALSE;
FXJSE_HVALUE pRetValue = FXJSE_Value_Create(rnd.m_pSC->GetRuntime());
bRet = pContext->RunScript(eLangType, wsExpression, pRetValue, node);
if (!bRet || !FXJSE_Value_ToBoolean(pRetValue)) {
findNodes.RemoveAt(i);
}
FXJSE_Value_Release(pRetValue);
}
}
开发者ID:andoma,项目名称:pdfium,代码行数:32,代码来源:xfa_script_resolveprocessor.cpp
示例2: DoDeactivate
FX_BOOL CFWL_NoteDriver::DoDeactivate(CFWL_MsgDeactivate* pMsg,
IFWL_Widget* pMessageForm) {
if (m_bFullScreen) {
return FALSE;
}
int32_t iTrackLoop = m_noteLoopQueue.GetSize();
if (iTrackLoop <= 0)
return FALSE;
if (iTrackLoop == 1) {
if (pMessageForm->IsInstance(FX_WSTRC(L"FWL_FORMPROXY"))) {
return FALSE;
}
if (pMsg->m_pSrcTarget &&
pMsg->m_pSrcTarget->IsInstance(FX_WSTRC(L"FWL_FORMPROXY"))) {
return FALSE;
}
if (pMsg->m_pSrcTarget && pMsg->m_pSrcTarget->GetClassID() == 1111984755) {
return FALSE;
}
return TRUE;
}
IFWL_Widget* pDst = pMsg->m_pDstTarget;
if (!pDst)
return FALSE;
#if (_FX_OS_ == _FX_MACOSX_)
if (pDst == pMessageForm && pDst->IsInstance(L"FWL_FORMPROXY")) {
return TRUE;
}
#endif
return pDst != pMessageForm &&
!pDst->IsInstance(FX_WSTRC(L"FWL_FORMPROXY")) &&
!pMessageForm->IsInstance(FX_WSTRC(L"FWL_FORMPROXY"));
}
开发者ID:andoma,项目名称:pdfium,代码行数:33,代码来源:fwl_noteimp.cpp
示例3: switch
void CXFA_FMRelationalExpression::ToJavaScript(CFX_WideTextBuf& javascript) {
switch (m_op) {
case TOKlt:
case TOKkslt:
javascript << gs_lpStrExpFuncName[LESS];
break;
case TOKgt:
case TOKksgt:
javascript << gs_lpStrExpFuncName[GREATER];
break;
case TOKle:
case TOKksle:
javascript << gs_lpStrExpFuncName[LESSEQUAL];
break;
case TOKge:
case TOKksge:
javascript << gs_lpStrExpFuncName[GREATEREQUAL];
break;
default:
ASSERT(FALSE);
break;
}
javascript << FX_WSTRC(L"(");
m_pExp1->ToJavaScript(javascript);
javascript << FX_WSTRC(L", ");
m_pExp2->ToJavaScript(javascript);
javascript << FX_WSTRC(L")");
}
开发者ID:gradescope,项目名称:pdfium,代码行数:28,代码来源:xfa_simpleexpression.cpp
示例4: tempStr
void CXFA_FMStringExpression::ToJavaScript(CFX_WideTextBuf& javascript) {
CFX_WideString tempStr(m_wsString);
if (tempStr.GetLength() > 2) {
javascript.AppendChar(L'\"');
FX_WCHAR oneChar;
for (int16_t i = 1; i < tempStr.GetLength() - 1; i++) {
oneChar = tempStr[i];
switch (oneChar) {
case L'\"': {
i++;
javascript << FX_WSTRC(L"\\\"");
} break;
case 0x0d:
break;
case 0x0a: {
javascript << FX_WSTRC(L"\\n");
} break;
default: { javascript.AppendChar(oneChar); } break;
}
}
javascript.AppendChar(L'\"');
} else {
javascript << tempStr;
}
}
开发者ID:gradescope,项目名称:pdfium,代码行数:25,代码来源:xfa_simpleexpression.cpp
示例5: GetFontInfo
FX_BOOL CXFA_FFConfigAcc::GetFontInfo(int32_t index,
CFX_WideString& wsFontFamily,
CFX_WideString& wsPsName,
FX_BOOL bBold,
FX_BOOL bItalic) {
if (index < 0 || index >= CountChildren()) {
return FALSE;
}
CXFA_Node* pFontNode = m_pPsMapNode->GetChild(index, XFA_ELEMENT_Font);
if (pFontNode == NULL) {
return FALSE;
}
wsFontFamily.Empty();
wsPsName.Empty();
bBold = FALSE;
bItalic = FALSE;
pFontNode->GetAttribute(XFA_ATTRIBUTE_Typeface, wsFontFamily);
pFontNode->GetAttribute(XFA_ATTRIBUTE_PsName, wsPsName);
CFX_WideString wsValue;
pFontNode->GetAttribute(XFA_ATTRIBUTE_Weight, wsValue);
wsValue.MakeLower();
if (wsValue == FX_WSTRC(L"bold")) {
bBold = TRUE;
}
pFontNode->GetAttribute(XFA_ATTRIBUTE_Posture, wsValue);
wsValue.MakeLower();
if (wsValue == FX_WSTRC(L"italic")) {
bItalic = TRUE;
}
return wsFontFamily.GetLength() > 0;
}
开发者ID:primiano,项目名称:pdfium-merge,代码行数:31,代码来源:xfa_ffConfigAcc.cpp
示例6: FX_WSTRC
void CXFA_FFDocView::ShowNullTestMsg() {
int32_t iCount = m_arrNullTestMsg.GetSize();
CXFA_FFApp* pApp = m_pDoc->GetApp();
IXFA_AppProvider* pAppProvider = pApp->GetAppProvider();
if (pAppProvider && iCount) {
int32_t iRemain = iCount > 7 ? iCount - 7 : 0;
iCount -= iRemain;
CFX_WideString wsMsg;
for (int32_t i = 0; i < iCount; i++) {
wsMsg += m_arrNullTestMsg[i] + FX_WSTRC(L"\n");
}
if (iRemain > 0) {
CFX_WideString wsLimit;
pAppProvider->LoadString(XFA_IDS_ValidateLimit, wsLimit);
if (!wsLimit.IsEmpty()) {
CFX_WideString wsTemp;
wsTemp.Format((const FX_WCHAR*)wsLimit, iRemain);
wsMsg += FX_WSTRC(L"\n") + wsTemp;
}
}
CFX_WideString wsTitle;
pAppProvider->LoadString(XFA_IDS_AppName, wsTitle);
pAppProvider->MsgBox(wsMsg, wsTitle, XFA_MBICON_Status, XFA_MB_OK);
}
m_arrNullTestMsg.RemoveAll();
}
开发者ID:andoma,项目名称:pdfium,代码行数:26,代码来源:xfa_ffdocview.cpp
示例7: FX_WSTRC
void CXFA_FMWhileExpression::ToImpliedReturnJS(CFX_WideTextBuf& javascript) {
javascript << RUNTIMEFUNCTIONRETURNVALUE;
javascript << FX_WSTRC(L" = 0;\n");
javascript << FX_WSTRC(L"while (");
m_pCondition->ToJavaScript(javascript);
javascript << FX_WSTRC(L")\n");
m_pExpression->ToImpliedReturnJS(javascript);
}
开发者ID:andoma,项目名称:pdfium,代码行数:8,代码来源:xfa_expression.cpp
示例8: FX_WSTRC
void CXFA_FMLogicalAndExpression::ToJavaScript(CFX_WideTextBuf& javascript) {
javascript << gs_lpStrExpFuncName[LOGICALAND];
javascript << FX_WSTRC(L"(");
m_pExp1->ToJavaScript(javascript);
javascript << FX_WSTRC(L", ");
m_pExp2->ToJavaScript(javascript);
javascript << FX_WSTRC(L")");
}
开发者ID:gradescope,项目名称:pdfium,代码行数:8,代码来源:xfa_simpleexpression.cpp
示例9: FXCRT_GetFileModeString
void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_WideString &wsMode)
{
if (dwModes & FX_FILEMODE_ReadOnly) {
wsMode = FX_WSTRC(L"rb");
} else if (dwModes & FX_FILEMODE_Truncate) {
wsMode = FX_WSTRC(L"w+b");
} else {
wsMode = FX_WSTRC(L"a+b");
}
}
开发者ID:codemonkey85,项目名称:pdfium,代码行数:10,代码来源:fxcrt_platforms.cpp
示例10: FX_WSTRC
void CXFA_FMBlockExpression::ToJavaScript(CFX_WideTextBuf& javascript) {
javascript << FX_WSTRC(L"{\n");
if (m_pExpressionList) {
for (int i = 0; i < m_pExpressionList->GetSize(); ++i) {
CXFA_FMExpression* e =
reinterpret_cast<CXFA_FMExpression*>(m_pExpressionList->GetAt(i));
e->ToJavaScript(javascript);
}
}
javascript << FX_WSTRC(L"}\n");
}
开发者ID:JinAirsOs,项目名称:pdfium,代码行数:11,代码来源:xfa_expression.cpp
示例11: ThrowScriptErrorMessage
FX_BOOL CScript_HostPseudoModel::Script_HostPseudoModel_ValidateArgsForMsg(
CFXJSE_Arguments* pArguments,
int32_t iArgIndex,
CFX_WideString& wsValue) {
if (pArguments == NULL || iArgIndex < 0) {
return FALSE;
}
FX_BOOL bIsJsType = FALSE;
if (m_pDocument->GetScriptContext()->GetType() ==
XFA_SCRIPTLANGTYPE_Javascript) {
bIsJsType = TRUE;
}
FXJSE_HVALUE hValueArg = pArguments->GetValue(iArgIndex);
if (!FXJSE_Value_IsUTF8String(hValueArg) && bIsJsType) {
ThrowScriptErrorMessage(XFA_IDS_ARGUMENT_MISMATCH);
FXJSE_Value_Release(hValueArg);
return FALSE;
}
if (FXJSE_Value_IsNull(hValueArg)) {
wsValue = FX_WSTRC(L"");
} else {
CFX_ByteString byMessage;
FXJSE_Value_ToUTF8String(hValueArg, byMessage);
wsValue = CFX_WideString::FromUTF8(byMessage, byMessage.GetLength());
}
FXJSE_Value_Release(hValueArg);
return TRUE;
}
开发者ID:andoma,项目名称:pdfium,代码行数:28,代码来源:xfa_script_hostpseudomodel.cpp
示例12: XFA_DataDescription_MaybeCreateDataNode
CXFA_Node* XFA_DataDescription_MaybeCreateDataNode(
CXFA_Document* pDocument,
CXFA_Node* pDataParent,
XFA_Element eNodeType,
const CFX_WideString& wsName) {
if (!pDataParent) {
return nullptr;
}
CXFA_Node* pParentDDNode = pDataParent->GetDataDescriptionNode();
if (!pParentDDNode) {
CXFA_Node* pDataNode =
pDocument->CreateNode(XFA_XDPPACKET_Datasets, eNodeType);
ASSERT(pDataNode);
pDataNode->SetCData(XFA_ATTRIBUTE_Name, wsName);
pDataNode->CreateXMLMappingNode();
pDataParent->InsertChild(pDataNode);
pDataNode->SetFlag(XFA_NodeFlag_Initialized, false);
return pDataNode;
} else {
CXFA_NodeIteratorTemplate<CXFA_Node, CXFA_TraverseStrategy_DDGroup>
sIterator(pParentDDNode);
for (CXFA_Node* pDDGroupNode = sIterator.GetCurrent(); pDDGroupNode;
pDDGroupNode = sIterator.MoveToNext()) {
if (pDDGroupNode != pParentDDNode) {
if (pDDGroupNode->GetElementType() != XFA_Element::DataGroup) {
continue;
}
CFX_WideString wsNamespace;
if (!pDDGroupNode->TryNamespace(wsNamespace) ||
wsNamespace != FX_WSTRC(L"http://ns.adobe.com/data-description/")) {
continue;
}
}
CXFA_Node* pDDNode =
pDDGroupNode->GetFirstChildByName(wsName.AsStringC());
if (!pDDNode) {
continue;
}
if (pDDNode->GetElementType() != eNodeType) {
break;
}
CXFA_Node* pDataNode =
pDocument->CreateNode(XFA_XDPPACKET_Datasets, eNodeType);
ASSERT(pDataNode);
pDataNode->SetCData(XFA_ATTRIBUTE_Name, wsName);
pDataNode->CreateXMLMappingNode();
if (eNodeType == XFA_Element::DataValue &&
pDDNode->GetEnum(XFA_ATTRIBUTE_Contains) ==
XFA_ATTRIBUTEENUM_MetaData) {
pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData);
}
pDataParent->InsertChild(pDataNode);
pDataNode->SetDataDescriptionNode(pDDNode);
pDataNode->SetFlag(XFA_NodeFlag_Initialized, false);
return pDataNode;
}
return nullptr;
}
}
开发者ID:endlessm,项目名称:chromium-browser,代码行数:59,代码来源:xfa_document_datadescription_imp.cpp
示例13: XFA_GetRelevant
FX_DWORD XFA_GetRelevant(CXFA_Node* pFormItem, FX_DWORD dwParentRelvant) {
FX_DWORD dwRelevant = XFA_LAYOUTSTATUS_Viewable | XFA_LAYOUTSTATUS_Printable;
CFX_WideStringC wsRelevant;
if (pFormItem->TryCData(XFA_ATTRIBUTE_Relevant, wsRelevant)) {
if (wsRelevant == FX_WSTRC(L"+print") || wsRelevant == FX_WSTRC(L"print")) {
dwRelevant &= ~XFA_LAYOUTSTATUS_Viewable;
} else if (wsRelevant == FX_WSTRC(L"-print")) {
dwRelevant &= ~XFA_LAYOUTSTATUS_Printable;
}
}
if (!(dwParentRelvant & XFA_LAYOUTSTATUS_Viewable) &&
(dwRelevant != XFA_LAYOUTSTATUS_Viewable)) {
dwRelevant &= ~XFA_LAYOUTSTATUS_Viewable;
}
if (!(dwParentRelvant & XFA_LAYOUTSTATUS_Printable) &&
(dwRelevant != XFA_LAYOUTSTATUS_Printable)) {
dwRelevant &= ~XFA_LAYOUTSTATUS_Printable;
}
return dwRelevant;
}
开发者ID:andoma,项目名称:pdfium,代码行数:20,代码来源:xfa_layout_appadapter.cpp
示例14: IsAbleNative
FX_BOOL CFWL_WidgetMgr::IsAbleNative(IFWL_Widget* pWidget) const {
if (!pWidget)
return FALSE;
if (!pWidget->IsInstance(FX_WSTRC(FWL_CLASS_Form))) {
return FALSE;
}
uint32_t dwStyles = pWidget->GetStyles();
return ((dwStyles & FWL_WGTSTYLE_WindowTypeMask) ==
FWL_WGTSTYLE_OverLapper) ||
(dwStyles & FWL_WGTSTYLE_Popup);
}
开发者ID:hfiguiere,项目名称:pdfium,代码行数:11,代码来源:cfwl_widgetmgr.cpp
示例15: InitTTO
FX_ERR CFWL_WidgetTP::InitTTO() {
if (m_pTextOut) {
return FWL_ERR_Succeeded;
}
m_pFDEFont =
CFWL_FontManager::GetInstance()->FindFont(FX_WSTRC(L"Helvetica"), 0, 0);
m_pTextOut = IFDE_TextOut::Create();
m_pTextOut->SetFont(m_pFDEFont);
m_pTextOut->SetFontSize(FWLTHEME_CAPACITY_FontSize);
m_pTextOut->SetTextColor(FWLTHEME_CAPACITY_TextColor);
m_pTextOut->SetEllipsisString(L"...");
return FWL_ERR_Succeeded;
}
开发者ID:JinAirsOs,项目名称:pdfium,代码行数:13,代码来源:widgettp.cpp
示例16: InitTTO
FWL_Error CFWL_WidgetTP::InitTTO() {
if (m_pTextOut)
return FWL_Error::Succeeded;
m_pFDEFont =
CFWL_FontManager::GetInstance()->FindFont(FX_WSTRC(L"Helvetica"), 0, 0);
m_pTextOut.reset(new CFDE_TextOut);
m_pTextOut->SetFont(m_pFDEFont);
m_pTextOut->SetFontSize(FWLTHEME_CAPACITY_FontSize);
m_pTextOut->SetTextColor(FWLTHEME_CAPACITY_TextColor);
m_pTextOut->SetEllipsisString(L"...");
return FWL_Error::Succeeded;
}
开发者ID:endlessm,项目名称:chromium-browser,代码行数:13,代码来源:cfwl_widgettp.cpp
示例17: FX_WSTRC
FX_BOOL CXFA_NodeHelper::XFA_CreateNode_ForCondition(
CFX_WideString& wsCondition) {
int32_t iLen = wsCondition.GetLength();
CFX_WideString wsIndex = FX_WSTRC(L"0");
;
FX_BOOL bAll = FALSE;
if (iLen == 0) {
m_iCreateFlag = XFA_RESOLVENODE_RSTYPE_CreateNodeOne;
return FALSE;
}
if (wsCondition.GetAt(0) == '[') {
int32_t i = 1;
for (; i < iLen; ++i) {
FX_WCHAR ch = wsCondition[i];
if (ch == ' ') {
continue;
}
if (ch == '+' || ch == '-') {
break;
} else if (ch == '*') {
bAll = TRUE;
break;
} else {
break;
}
}
if (bAll) {
wsIndex = FX_WSTRC(L"1");
m_iCreateFlag = XFA_RESOLVENODE_RSTYPE_CreateNodeAll;
} else {
m_iCreateFlag = XFA_RESOLVENODE_RSTYPE_CreateNodeOne;
wsIndex = wsCondition.Mid(i, iLen - 1 - i);
}
int32_t iIndex = wsIndex.GetInteger();
m_iCreateCount = iIndex;
return TRUE;
}
return FALSE;
}
开发者ID:andoma,项目名称:pdfium,代码行数:39,代码来源:xfa_script_nodehelper.cpp
示例18: CreateField
CXFA_Node* CXFA_FFWidgetHandler::CreatePushButton(CXFA_Node* pParent,
CXFA_Node* pBefore) const {
CXFA_Node* pField = CreateField(XFA_ELEMENT_Button, pParent, pBefore);
CXFA_Node* pCaption = CreateCopyNode(XFA_ELEMENT_Caption, pField);
CXFA_Node* pValue = CreateCopyNode(XFA_ELEMENT_Value, pCaption);
CXFA_Node* pText = CreateCopyNode(XFA_ELEMENT_Text, pValue);
pText->SetContent(FX_WSTRC(L"Button"), FX_WSTRC(L"Button"), FALSE);
CXFA_Node* pPara = CreateCopyNode(XFA_ELEMENT_Para, pCaption);
pPara->SetEnum(XFA_ATTRIBUTE_VAlign, XFA_ATTRIBUTEENUM_Middle, FALSE);
pPara->SetEnum(XFA_ATTRIBUTE_HAlign, XFA_ATTRIBUTEENUM_Center, FALSE);
CreateFontNode(pCaption);
CXFA_Node* pBorder = CreateCopyNode(XFA_ELEMENT_Border, pField);
pBorder->SetEnum(XFA_ATTRIBUTE_Hand, XFA_ATTRIBUTEENUM_Right, FALSE);
CXFA_Node* pEdge = CreateCopyNode(XFA_ELEMENT_Edge, pBorder);
pEdge->SetEnum(XFA_ATTRIBUTE_Stroke, XFA_ATTRIBUTEENUM_Raised, FALSE);
CXFA_Node* pFill = CreateCopyNode(XFA_ELEMENT_Fill, pBorder);
CXFA_Node* pColor = CreateCopyNode(XFA_ELEMENT_Color, pFill);
pColor->SetCData(XFA_ATTRIBUTE_Value, FX_WSTRC(L"212, 208, 200"), FALSE);
CXFA_Node* pBind = CreateCopyNode(XFA_ELEMENT_Bind, pField);
pBind->SetEnum(XFA_ATTRIBUTE_Match, XFA_ATTRIBUTEENUM_None);
return pField;
}
开发者ID:primiano,项目名称:pdfium-merge,代码行数:22,代码来源:xfa_ffwidgethandler.cpp
示例19: ToObject
void CXFA_ScriptContext::NormalPropertyGetter(CFXJSE_Value* pOriginalValue,
const CFX_ByteStringC& szPropName,
CFXJSE_Value* pReturnValue) {
CXFA_Object* pOriginalObject = ToObject(pOriginalValue, nullptr);
if (!pOriginalObject) {
pReturnValue->SetUndefined();
return;
}
CFX_WideString wsPropName = CFX_WideString::FromUTF8(szPropName);
CXFA_ScriptContext* lpScriptContext =
pOriginalObject->GetDocument()->GetScriptContext();
CXFA_Object* pObject = lpScriptContext->GetVariablesThis(pOriginalObject);
if (wsPropName == FX_WSTRC(L"xfa")) {
CFXJSE_Value* pValue = lpScriptContext->GetJSValueFromMap(
lpScriptContext->GetDocument()->GetRoot());
pReturnValue->Assign(pValue);
return;
}
uint32_t dwFlag = XFA_RESOLVENODE_Children | XFA_RESOLVENODE_Properties |
XFA_RESOLVENODE_Attributes;
FX_BOOL bRet = lpScriptContext->QueryNodeByFlag(
ToNode(pObject), wsPropName.AsStringC(), pReturnValue, dwFlag, FALSE);
if (bRet) {
return;
}
if (pObject == lpScriptContext->GetThisObject() ||
(lpScriptContext->GetType() == XFA_SCRIPTLANGTYPE_Javascript &&
!lpScriptContext->IsStrictScopeInJavaScript())) {
dwFlag = XFA_RESOLVENODE_Parent | XFA_RESOLVENODE_Siblings;
bRet = lpScriptContext->QueryNodeByFlag(
ToNode(pObject), wsPropName.AsStringC(), pReturnValue, dwFlag, FALSE);
}
if (bRet) {
return;
}
CXFA_Object* pScriptObject =
lpScriptContext->GetVariablesThis(pOriginalObject, TRUE);
if (pScriptObject) {
bRet = lpScriptContext->QueryVariableValue(ToNode(pScriptObject),
szPropName, pReturnValue, TRUE);
}
if (!bRet) {
pReturnValue->SetUndefined();
}
}
开发者ID:gradescope,项目名称:pdfium,代码行数:45,代码来源:cxfa_scriptcontext.cpp
示例20: CXFA_FMFunctionDefinition
int32_t CXFA_FMProgram::ParseProgram() {
CFX_PtrArray* expressions = 0;
m_parse.NextToken();
if (!m_pErrorInfo.message.IsEmpty()) {
return -1;
}
expressions = m_parse.ParseTopExpression();
if (!m_pErrorInfo.message.IsEmpty()) {
CXFA_FMExpression* e = 0;
for (int32_t u = 0; u < expressions->GetSize(); ++u) {
e = (CXFA_FMExpression*)expressions->GetAt(u);
if (e) {
delete e;
}
}
delete expressions;
return -1;
}
m_globalFunction =
new CXFA_FMFunctionDefinition(1, 1, FX_WSTRC(L""), 0, expressions);
return 0;
}
开发者ID:andoma,项目名称:pdfium,代码行数:22,代码来源:xfa_program.cpp
注:本文中的FX_WSTRC函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论