本文整理汇总了C#中XmlBooster.XmlBContext.acceptHexa方法的典型用法代码示例。如果您正苦于以下问题:C# XmlBContext.acceptHexa方法的具体用法?C# XmlBContext.acceptHexa怎么用?C# XmlBContext.acceptHexa使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XmlBooster.XmlBContext
的用法示例。
在下文中一共展示了XmlBContext.acceptHexa方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: lAcceptPcDataChr
/// <summary>Utility function which parse an entity character
/// as defined in the XMLBooster configuration.</summary>
/// <param name="ctxt">the context from which the data must be parsed</param>
static char lAcceptPcDataChr(XmlBContext ctxt)
{
char c = (char)0;
int indicator=0;
switch (ctxt.current()) {
case 'q':
{
ctxt.advance();
ctxt.acceptString ("uot;");
indicator = 2653;
break;
} // Case
case 'n':
{
ctxt.advance();
ctxt.acceptString ("bsp;");
indicator = 2652;
break;
} // Case
case 'l':
{
ctxt.advance();
ctxt.accept2('t',';');
indicator = 2650;
break;
} // Case
case 'g':
{
ctxt.advance();
ctxt.accept2('t',';');
indicator = 2651;
break;
} // Case
case 'a':
{
ctxt.advance();
switch (ctxt.current()) {
case 'p':
{
ctxt.advance();
ctxt.accept3('o','s',';');
indicator = 2654;
break;
} // Case
case 'm':
{
ctxt.advance();
ctxt.accept2('p',';');
indicator = 2649;
break;
} // Case
default:
ctxt.recoverableFail ("Other character expected (2662)");
break;
} // Switch
break;
} // Case
case '#':
{
ctxt.advance();
ctxt.accept('x');
indicator = 2655;
break;
} // Case
default:
ctxt.recoverableFail ("Other character expected (2664)");
break;
} // Switch
switch (indicator) {
case 2649: {
c = XMLB_AMPERSAND;
break;
} // End of dispatch label
case 2650: {
c = XMLB_LESS;
break;
} // End of dispatch label
case 2651: {
c = XMLB_GREATER;
break;
} // End of dispatch label
case 2652: {
c = XMLB_NBSP;
break;
} // End of dispatch label
case 2653: {
c = XMLB_QUOT;
break;
} // End of dispatch label
case 2654: {
c = XMLB_APOS;
break;
} // End of dispatch label
case 2655: {
c = (char) ctxt.acceptHexa();
ctxt.accept(';');
break;
//.........这里部分代码省略.........