本文整理汇总了C#中RubyContext.CreateAsciiSymbol方法的典型用法代码示例。如果您正苦于以下问题:C# RubyContext.CreateAsciiSymbol方法的具体用法?C# RubyContext.CreateAsciiSymbol怎么用?C# RubyContext.CreateAsciiSymbol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RubyContext
的用法示例。
在下文中一共展示了RubyContext.CreateAsciiSymbol方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: XmlDeclaration
public XmlDeclaration(RubyContext context)
: base(context, new AttributeData())
{
_encoding = context.CreateAsciiSymbol("encoding");
_standalone = context.CreateAsciiSymbol("standalone");
_version = context.CreateAsciiSymbol("version");
}
示例2: InitializeGeneratorStateKey
private static IDictionary<String, RubySymbol> InitializeGeneratorStateKey(RubyContext context)
{
// TODO: I do not really like how I implemented this...
if (_generatorStateKeyMappings == null) {
_generatorStateKeyMappings = new Dictionary<String, RubySymbol>();
_generatorStateKeyMappings.Add("indent", context.CreateAsciiSymbol("indent"));
_generatorStateKeyMappings.Add("space", context.CreateAsciiSymbol("space"));
_generatorStateKeyMappings.Add("space_before", context.CreateAsciiSymbol("space_before"));
_generatorStateKeyMappings.Add("array_nl", context.CreateAsciiSymbol("array_nl"));
_generatorStateKeyMappings.Add("object_nl", context.CreateAsciiSymbol("object_nl"));
_generatorStateKeyMappings.Add("check_circular", context.CreateAsciiSymbol("check_circular"));
_generatorStateKeyMappings.Add("max_nesting", context.CreateAsciiSymbol("max_nesting"));
_generatorStateKeyMappings.Add("allow_nan", context.CreateAsciiSymbol("allow_nan"));
}
return _generatorStateKeyMappings;
}
示例3: DocumentType
public DocumentType(RubyContext context)
: base(context, new AttributeData())
{
_systemId = context.CreateAsciiSymbol("system_id");
_publicId = context.CreateAsciiSymbol("public_id");
}
示例4: InitializeHpricotSymbols
private void InitializeHpricotSymbols(RubyContext context)
{
sym_xmldecl = context.CreateAsciiSymbol("xmldecl");
sym_doctype = context.CreateAsciiSymbol("doctype");
sym_procins = context.CreateAsciiSymbol("procins");
sym_stag = context.CreateAsciiSymbol("stag");
sym_etag = context.CreateAsciiSymbol("etag");
sym_emptytag = context.CreateAsciiSymbol("emptytag");
sym_comment = context.CreateAsciiSymbol("comment");
sym_cdata = context.CreateAsciiSymbol("cdata");
sym_text = context.CreateAsciiSymbol("text");
sym_EMPTY = context.CreateAsciiSymbol("EMPTY");
sym_CDATA = context.CreateAsciiSymbol("CDATA");
symAllow = context.CreateAsciiSymbol("allow");
symDeny = context.CreateAsciiSymbol("deny");
_optXml = context.CreateAsciiSymbol("xml");
_optFixupTags = context.CreateAsciiSymbol("fixup_tags");
_optXhtmlStrict = context.CreateAsciiSymbol("xhtml_strict");
}