本文整理汇总了C++中XSLTProcessor::getParameter方法的典型用法代码示例。如果您正苦于以下问题:C++ XSLTProcessor::getParameter方法的具体用法?C++ XSLTProcessor::getParameter怎么用?C++ XSLTProcessor::getParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XSLTProcessor
的用法示例。
在下文中一共展示了XSLTProcessor::getParameter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void V8XSLTProcessor::getParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (isUndefinedOrNull(info[1]))
return;
TOSTRING_VOID(V8StringResource<>, namespaceURI, info[0]);
TOSTRING_VOID(V8StringResource<>, localName, info[1]);
XSLTProcessor* impl = V8XSLTProcessor::toNative(info.Holder());
String result = impl->getParameter(namespaceURI, localName);
if (result.isNull())
return;
v8SetReturnValueString(info, result, info.GetIsolate());
}
示例2: toWebCoreString
v8::Handle<v8::Value> V8XSLTProcessor::getParameterMethodCustom(const v8::Arguments& args)
{
if (isUndefinedOrNull(args[1]))
return v8::Undefined();
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
String namespaceURI = toWebCoreString(args[0]);
String localName = toWebCoreString(args[1]);
String result = imp->getParameter(namespaceURI, localName);
if (result.isNull())
return v8::Undefined();
return v8String(result, args.GetIsolate());
}
示例3: toWebCoreString
void V8XSLTProcessor::getParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
if (isUndefinedOrNull(args[1]))
return;
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
String namespaceURI = toWebCoreString(args[0]);
String localName = toWebCoreString(args[1]);
String result = imp->getParameter(namespaceURI, localName);
if (result.isNull())
return;
v8SetReturnValueString(args, result, args.GetIsolate());
}
开发者ID:IllusionRom-deprecated,项目名称:android_platform_external_chromium_org_third_party_WebKit,代码行数:15,代码来源:V8XSLTProcessorCustom.cpp
示例4: toWebCoreString
v8::Handle<v8::Value> V8XSLTProcessor::getParameterCallback(const v8::Arguments& args)
{
INC_STATS("DOM.XSLTProcessor.getParameter");
if (isUndefinedOrNull(args[1]))
return v8::Undefined();
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
String namespaceURI = toWebCoreString(args[0]);
String localName = toWebCoreString(args[1]);
String result = imp->getParameter(namespaceURI, localName);
if (result.isNull())
return v8::Undefined();
return v8String(result);
}