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


C# XmlBContext.lookAhead3方法代码示例

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


在下文中一共展示了XmlBContext.lookAhead3方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: lAcceptEnum_resolution_formula_units

 /// <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_units lAcceptEnum_resolution_formula_units(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       resolution_formula_units res = resolution_formula_units.defaultresolution_formula_units;
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ext-string-element")){
     res = resolution_formula_units.text_string_element;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 's':
     {
     ctxt.advance();
     res = resolution_formula_units.s;
     break;
     } // Case
     case 'q':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("_scale")){
     res = resolution_formula_units.q_scale;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'm':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 's':
     {
     ctxt.advance();
     res = resolution_formula_units.ms;
     break;
     } // Case
     case '/':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('s','2')){
     res = resolution_formula_units.m_s2;
     } else {
     ctxt.moveBack(1);
     res = resolution_formula_units.m;
     } // If
     break;
     } // Case
     default:
     res = resolution_formula_units.m;
     break;
     } // Switch
     break;
     } // Case
     case 'k':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('m','/','h')){
     res = resolution_formula_units.km_h;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'b':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'y':
     {
     ctxt.advance();
     ctxt.accept2('t','e');
     res = resolution_formula_units.abyte;
     break;
     } // Case
     case 'i':
     {
     ctxt.advance();
     ctxt.accept('t');
     res = resolution_formula_units.abit;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2288)");
     break;
     } // Switch
     break;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例2: parse


//.........这里部分代码省略.........
            indicator = 1054;
            } else {
            indicator = 1057;
            } // If
            break;
            } // Case
            case 'P':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("inned=")){
            indicator = 1048;
            } else {
            indicator = 1057;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'e':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("edsRequirement=")){
            indicator = 1051;
            } else {
            indicator = 1057;
            } // If
            break;
            } // Case
            case 'a':
            {
            ctxt.advance();
            if (ctxt.lookAhead3('m','e','=')){
            indicator = 1052;
            } else {
            indicator = 1057;
            } // If
            break;
            } // Case
            default:
            indicator = 1057;
            break;
            } // Switch
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 's':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("Removed=")){
            indicator = 1055;
            } else {
            indicator = 1057;
            } // If
            break;
            } // Case
            case 'm':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("plemented=")){
            indicator = 1049;
            } else {
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:67,代码来源:DataDictionary.Generated.cs

示例3: lAccept_Poly_ReqRelated


//.........这里部分代码省略.........
     {
     ctxt.advance();
     if (ctxt.lookAheadString("isabling")){
     ctxt.accept(quoteChar);
     res = lAccept_RuleDisabling(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_Rule(ctxt, endingTag);
     } // If
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ondition")){
     ctxt.accept(quoteChar);
     res = lAccept_RuleCondition(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_Rule(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_Rule(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','g','e')){
     ctxt.accept(quoteChar);
     res = lAccept_Range(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("rocedure")){
     ctxt.accept(quoteChar);
     res = lAccept_Procedure(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'F':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("unction")){
     ctxt.accept(quoteChar);
     res = lAccept_Function(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','u','m')){
     ctxt.accept(quoteChar);
     res = lAccept_Enum(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ollection")){
     ctxt.accept(quoteChar);
     res = lAccept_Collection(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
       return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例4: parse

        /// <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 override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl448;
            bool fl449;
            bool fl450;
            bool fl451;
            bool fl452;
            bool fl453;
            bool fl454;
            bool fl455;
            bool fl456;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl448 = false ;
            fl449 = false ;
            fl450 = false ;
            fl451 = false ;
            fl452 = false ;
            fl453 = false ;
            fl454 = false ;
            fl455 = false ;
            fl456 = true ;
            while (fl456) { // BeginLoop
            switch (ctxt.current()) {
            case 'V':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("erified=")){
            indicator = 453;
            } else {
            indicator = 457;
            } // If
            break;
            } // Case
            case 'P':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("recision=")){
            indicator = 450;
            } else {
            indicator = 457;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'e':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("edsRequirement=")){
            indicator = 454;
            } else {
            indicator = 457;
            } // If
            break;
            } // Case
            case 'a':
            {
            ctxt.advance();
            if (ctxt.lookAhead3('m','e','=')){
            indicator = 455;
            } else {
            indicator = 457;
            } // If
            break;
            } // Case
            default:
            indicator = 457;
            break;
            } // Switch
            break;
            } // Case
            case 'M':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'i':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("nValue=")){
            indicator = 448;
            } else {
            indicator = 457;
            } // If
            break;
            } // Case
            case 'a':
//.........这里部分代码省略.........
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例5: 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

示例6: lAcceptEnum_meaning_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 meaning_type lAcceptEnum_meaning_type(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       meaning_type res = meaning_type.defaultmeaning_type;
     switch (ctxt.current()) {
     case 'u':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("nknown")){
     res = meaning_type.aunknown;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'i':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('n')){
     switch (ctxt.current()) {
     case 'v':
     {
     ctxt.advance();
     ctxt.acceptString ("alid");
     res = meaning_type.ainvalid;
     break;
     } // Case
     case 'f':
     {
     ctxt.advance();
     ctxt.acceptString ("inite");
     res = meaning_type.ainfinite;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2259)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','u','m')){
     res = meaning_type.aenum;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     default:
     res = 0;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:68,代码来源:DataDictionary.Generated.cs

示例7: lAcceptEnum_Message_media

 /// <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 Message_media lAcceptEnum_Message_media(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       Message_media res = Message_media.defaultMessage_media;
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'I':
     {
     ctxt.advance();
     ctxt.accept('U');
     res = Message_media.aRIU;
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     ctxt.accept('C');
     switch (ctxt.current()) {
     case ',':
     {
     ctxt.advance();
     if (ctxt.lookAheadString(" RIU")){
     res = Message_media.aRBC_RIU;
     } else {
     ctxt.moveBack(1);
     res = Message_media.aRBC;
     } // If
     break;
     } // Case
     default:
     res = Message_media.aRBC;
     break;
     } // Switch
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2232)");
     break;
     } // Switch
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('o','o','p')){
     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
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例8: lAccept_Poly_Namable


//.........这里部分代码省略.........
     } // If
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("quirementSet")){
     switch (ctxt.current()) {
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ependancy")){
     ctxt.accept(quoteChar);
     res = lAccept_RequirementSetDependancy(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_RequirementSet(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_RequirementSet(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','g','e')){
     ctxt.accept(quoteChar);
     res = lAccept_Range(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ocedure")){
     ctxt.accept(quoteChar);
     res = lAccept_Procedure(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('r','a')){
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:67,代码来源:DataDictionary.Generated.cs

示例9: 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

示例10: lAccept_Poly_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 Type lAccept_Poly_Type(XmlBContext ctxt, 
                   string  endingTag)
 {
     char quoteChar;
     Type res = null;
     ctxt.skipWhiteSpace();
     ctxt.acceptString ("xsi:type=");
     quoteChar = ctxt.acceptQuote();
     switch (ctxt.current()) {
     case 'S':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('t')){
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ucture")){
     ctxt.accept(quoteChar);
     res = lAccept_Structure(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("teMachine")){
     ctxt.accept(quoteChar);
     res = lAccept_StateMachine(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ange")){
     ctxt.accept(quoteChar);
     res = lAccept_Range(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'F':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("unction")){
     ctxt.accept(quoteChar);
     res = lAccept_Function(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','u','m')){
     ctxt.accept(quoteChar);
     res = lAccept_Enum(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ollection")){
     ctxt.accept(quoteChar);
     res = lAccept_Collection(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
       return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:99,代码来源:DataDictionary.Generated.cs


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