当前位置: 首页>>代码示例>>C#>>正文


C# XmlBContext.accept3方法代码示例

本文整理汇总了C#中XmlBooster.XmlBContext.accept3方法的典型用法代码示例。如果您正苦于以下问题:C# XmlBContext.accept3方法的具体用法?C# XmlBContext.accept3怎么用?C# XmlBContext.accept3使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XmlBooster.XmlBContext的用法示例。


在下文中一共展示了XmlBContext.accept3方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例2: lAcceptEnum_Paragraph_type

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static Paragraph_type lAcceptEnum_Paragraph_type(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       Paragraph_type res = Paragraph_type.defaultParagraph_type;
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'I':
     {
     ctxt.advance();
     ctxt.accept3('T','L','E');
     res = Paragraph_type.aTITLE;
     break;
     } // Case
     case 'A':
     {
     ctxt.advance();
     ctxt.acceptString ("BLE_HEADER");
     res = Paragraph_type.aTABLE_HEADER;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2215)");
     break;
     } // Switch
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("EQUIREMENT")){
     res = Paragraph_type.aREQUIREMENT;
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ROBLEM")){
     res = Paragraph_type.aPROBLEM;
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('O','T','E')){
     res = Paragraph_type.aNOTE;
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('E')){
     switch (ctxt.current()) {
     case 'L':
     {
     ctxt.advance();
     ctxt.acceptString ("ETED");
     res = Paragraph_type.aDELETED;
     break;
     } // Case
     case 'F':
     {
     ctxt.advance();
     ctxt.acceptString ("INITION");
     res = Paragraph_type.aDEFINITION;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2222)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     default:
     res = Paragraph_type.aREQUIREMENT;
     break;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例3: lAcceptEnum_resolution_formula_Value

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static resolution_formula_Value lAcceptEnum_resolution_formula_Value(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       resolution_formula_Value res = resolution_formula_Value.defaultresolution_formula_Value;
     switch (ctxt.current()) {
     case 'i':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ntegers")){
     res = resolution_formula_Value.aintegers;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("umber")){
     switch (ctxt.current()) {
     case 's':
     {
     ctxt.advance();
     res = resolution_formula_Value.aNumbers;
     break;
     } // Case
     default:
     res = resolution_formula_Value.aNumber;
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('i')){
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     ctxt.accept3('s','e','t');
     res = resolution_formula_Value.aBitset;
     break;
     } // Case
     case 'n':
     {
     ctxt.advance();
     ctxt.acceptString ("ary Coded Decimal");
     res = resolution_formula_Value.aBinary_Coded_Decimal;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2297)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case '5':
     {
     ctxt.advance();
     res = resolution_formula_Value.aC_5;
     break;
     } // Case
     case '1':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case '0':
     {
     ctxt.advance();
     res = resolution_formula_Value.a10;
     break;
     } // Case
     default:
     res = resolution_formula_Value.aC_1;
     break;
     } // Switch
     break;
     } // Case
     case '0':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('.','0')){
     switch (ctxt.current()) {
     case '5':
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例4: lAcceptEnum_Message_media


//.........这里部分代码省略.........
     res = Message_media.aLoop;
     } else {
     ctxt.moveBack(1);
     res = Message_media.aAny_;
     } // If
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("alise")){
     switch (ctxt.current()) {
     case ',':
     {
     ctxt.advance();
     if (ctxt.lookAhead1(' ')){
     switch (ctxt.current()) {
     case 'l':
     {
     ctxt.advance();
     ctxt.acceptString ("oop, RIU");
     res = Message_media.aBalise_loop_RIU;
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     ctxt.accept2('B','C');
     switch (ctxt.current()) {
     case ',':
     {
     ctxt.advance();
     if (ctxt.lookAheadString(" RIU")){
     res = Message_media.aBalise_RBC_RIU;
     } else {
     ctxt.moveBack(1);
     res = Message_media.aBalise_RBC;
     } // If
     break;
     } // Case
     default:
     res = Message_media.aBalise_RBC;
     break;
     } // Switch
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     ctxt.accept3('o','o','p');
     res = Message_media.aBalise_loop;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2240)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = Message_media.aBalise;
     } // If
     break;
     } // Case
     default:
     res = Message_media.aBalise;
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = Message_media.aAny_;
     } // If
     break;
     } // Case
     case 'A':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('n','y')){
     switch (ctxt.current()) {
     case ' ':
     {
     ctxt.advance();
     res = Message_media.aAny_;
     break;
     } // Case
     default:
     res = Message_media.aAny;
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = Message_media.aAny_;
     } // If
     break;
     } // Case
     default:
     res = Message_media.aAny_;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例5: lAcceptEnum_MessageEnumType


//.........这里部分代码省略.........
     {
     ctxt.advance();
     if (ctxt.lookAheadString("nFillMA")){
     res = MessageEnumType.aInFillMA;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'G':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("eneralMessage")){
     res = MessageEnumType.aGeneralMessage;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'E':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'u':
     {
     ctxt.advance();
     ctxt.accept2('r','o');
     switch (ctxt.current()) {
     case 'l':
     {
     ctxt.advance();
     ctxt.accept3('o','o','p');
     res = MessageEnumType.aEuroloop;
     break;
     } // Case
     case 'b':
     {
     ctxt.advance();
     ctxt.acceptString ("alise");
     res = MessageEnumType.aEurobalise;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2374)");
     break;
     } // Switch
     break;
     } // Case
     case 'n':
     {
     ctxt.advance();
     ctxt.acceptString ("dOfMission");
     res = MessageEnumType.aEndOfMission;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2376)");
     break;
     } // Switch
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:67,代码来源:DataDictionary.Generated.cs

示例6: accept


//.........这里部分代码省略.........
     } // Case
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ependancy")){
       res =  lAccept_RequirementSetDependancy(ctxt, "</RequirementSetDependancy>");
     } else {
       res =  lAccept_RequirementSet(ctxt, "</RequirementSet>");
     } // If
     break;
     } // Case
     default:
       res =  lAccept_RequirementSet(ctxt, "</RequirementSet>");
     break;
     } // Switch
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     ctxt.accept2('e','f');
       res =  lAccept_ReqRef(ctxt, "</ReqRef>");
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2702)");
     break;
     } // Switch
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     ctxt.accept3('n','g','e');
       res =  lAccept_Range(ctxt, "</Range>");
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2704)");
     break;
     } // Switch
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'o':
     {
     ctxt.advance();
     ctxt.acceptString ("cedure");
       res =  lAccept_Procedure(ctxt, "</Procedure>");
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     ctxt.acceptString ("Condition");
       res =  lAccept_PreCondition(ctxt, "</PreCondition>");
     break;
     } // Case
     default:
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:67,代码来源:DataDictionary.Generated.cs

示例7: lAcceptEnum_DBMessageType

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static DBMessageType lAcceptEnum_DBMessageType(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       DBMessageType res = DBMessageType.defaultDBMessageType;
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('U','R','O')){
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     ctxt.acceptString ("ADIO");
     res = DBMessageType.aEURORADIO;
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     ctxt.accept3('O','O','P');
     res = DBMessageType.aEUROLOOP;
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     ctxt.acceptString ("ALISE");
     res = DBMessageType.aEUROBALISE;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2452)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     default:
     res = 0;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:53,代码来源:DataDictionary.Generated.cs

示例8: lAcceptBoolean

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static bool lAcceptBoolean(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator = 0;
     #pragma warning restore 0168, 0219
       bool res = false;
     switch (ctxt.current()) {
     case 'y':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('s')){
     res = true;
     } else {
     res = true;
     } // If
     break;
     } // Case
     default:
     res = true;
     break;
     } // Switch
     break;
     } // Case
     case 't':
     {
     ctxt.advance();
     ctxt.accept3('r','u','e');
     res = true;
     break;
     } // Case
     case 'o':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'n':
     {
     ctxt.advance();
     res = true;
     break;
     } // Case
     case 'f':
     {
     ctxt.advance();
     ctxt.accept('f');
     res = false;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2463)");
     break;
     } // Switch
     break;
     } // Case
     case 'n':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'o':
     {
     ctxt.advance();
     res = false;
     break;
     } // Case
     default:
     res = false;
     break;
     } // Switch
     break;
     } // Case
     case 'f':
     {
     ctxt.advance();
     ctxt.acceptString ("alse");
     res = false;
     break;
     } // Case
     case 'Y':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('S')){
     res = true;
     } else {
     res = true;
     } // If
     break;
     } // Case
     default:
     res = true;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs


注:本文中的XmlBooster.XmlBContext.accept3方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。