本文整理汇总了C++中DocumentType::internalSubset方法的典型用法代码示例。如果您正苦于以下问题:C++ DocumentType::internalSubset方法的具体用法?C++ DocumentType::internalSubset怎么用?C++ DocumentType::internalSubset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DocumentType
的用法示例。
在下文中一共展示了DocumentType::internalSubset方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: appendDocumentType
void MarkupAccumulator::appendDocumentType(StringBuilder& result, const DocumentType& n)
{
if (n.name().isEmpty())
return;
result.appendLiteral("<!DOCTYPE ");
result.append(n.name());
if (!n.publicId().isEmpty()) {
result.appendLiteral(" PUBLIC \"");
result.append(n.publicId());
result.append('"');
if (!n.systemId().isEmpty()) {
result.appendLiteral(" \"");
result.append(n.systemId());
result.append('"');
}
} else if (!n.systemId().isEmpty()) {
result.appendLiteral(" SYSTEM \"");
result.append(n.systemId());
result.append('"');
}
if (!n.internalSubset().isEmpty()) {
result.appendLiteral(" [");
result.append(n.internalSubset());
result.append(']');
}
result.append('>');
}
示例2: jsDocumentTypeInternalSubset
JSValue jsDocumentTypeInternalSubset(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSDocumentType* castedThis = static_cast<JSDocumentType*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
DocumentType* imp = static_cast<DocumentType*>(castedThis->impl());
return jsStringOrNull(exec, imp->internalSubset());
}
示例3: getValueProperty
JSValue* JSDocumentType::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case NameAttrNum: {
DocumentType* imp = static_cast<DocumentType*>(impl());
return jsString(exec, imp->name());
}
case EntitiesAttrNum: {
DocumentType* imp = static_cast<DocumentType*>(impl());
return toJS(exec, WTF::getPtr(imp->entities()));
}
case NotationsAttrNum: {
DocumentType* imp = static_cast<DocumentType*>(impl());
return toJS(exec, WTF::getPtr(imp->notations()));
}
case PublicIdAttrNum: {
DocumentType* imp = static_cast<DocumentType*>(impl());
return jsStringOrNull(exec, imp->publicId());
}
case SystemIdAttrNum: {
DocumentType* imp = static_cast<DocumentType*>(impl());
return jsStringOrNull(exec, imp->systemId());
}
case InternalSubsetAttrNum: {
DocumentType* imp = static_cast<DocumentType*>(impl());
return jsStringOrNull(exec, imp->internalSubset());
}
case ConstructorAttrNum:
return getConstructor(exec);
}
return 0;
}
示例4: jsDocumentTypeInternalSubset
JSValue jsDocumentTypeInternalSubset(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSDocumentType* castedThis = static_cast<JSDocumentType*>(asObject(slotBase));
UNUSED_PARAM(exec);
DocumentType* imp = static_cast<DocumentType*>(castedThis->impl());
JSValue result = jsStringOrNull(exec, imp->internalSubset());
return result;
}