當前位置: 首頁>>代碼示例>>C#>>正文


C# XmlBContext.isAlNum方法代碼示例

本文整理匯總了C#中XmlBooster.XmlBContext.isAlNum方法的典型用法代碼示例。如果您正苦於以下問題:C# XmlBContext.isAlNum方法的具體用法?C# XmlBContext.isAlNum怎麽用?C# XmlBContext.isAlNum使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在XmlBooster.XmlBContext的用法示例。


在下文中一共展示了XmlBContext.isAlNum方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: acceptHistory

 /// <summary>Top level function to parse an History from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static History acceptHistory(XmlBContext ctxt)
 {
     History res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<History");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_History(ctxt, "</History>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
開發者ID:nikiforovandrey,項目名稱:ERTMSFormalSpecs,代碼行數:26,代碼來源:HistoricalData.Generated.cs

示例2: 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 fl2189;
            bool fl2190;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl2189 = false ;
            fl2190 = true ;
            while (fl2190) { // BeginLoop
            if (ctxt.lookAheadString("units=")){
            indicator = 2189;
            } else {
            indicator = 2191;
            } // If
            switch (indicator) {
            case 2189: {
            // Handling attribute units
            // Also handles alien attributes with prefix units
            if (fl2189){
            ctxt.fail ("Duplicate attribute: units");
            } // If
            fl2189 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setUnits(acceptor.lAcceptEnum_resolution_formula_units(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 2191: {
            // Taking ignorable attributes into account
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl2190 = false ;
            } // If
            break;
            } // End of dispatch label
            } // Dispatch
            } // While
            }
            ctxt.skipWhiteSpace();
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            parseBody(ctxt);
            ctxt.acceptString ("</resolution-formula>");
            // If formula empty
            } // If
        }
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:69,代碼來源:DataDictionary.Generated.cs

示例3: parseBody

        /// <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 parseBody(XmlBContext ctxt)
        {
            #pragma warning disable 0168, 0219
            int indicator=0;
            char quoteChar;
             string  tempStr;
            #pragma warning restore 0168, 0219
            bool fl1073;
            Variable fl1075;

            ctxt.skipWhiteSpace();
            base.parseBody(ctxt);
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<SubVariables")){
            ctxt.skipWhiteSpace();
            fl1073 = true ;
            while (fl1073) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1073 = false ;
            } // If
            } // While
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            // Repeat
            ctxt.skipWhiteSpace();
            fl1075 = null;
            while(ctxt.lookAheadOpeningTag ("<Variable")) {
            fl1075 = acceptor.lAccept_Variable(ctxt, "</Variable>");
            appendSubVariables(fl1075);
            ctxt.skipWhiteSpace();
            } // -- monomorphic Loop
            // EndRepeat
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</SubVariables>");
            } // If
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
        }
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:56,代碼來源:DataDictionary.Generated.cs


注:本文中的XmlBooster.XmlBContext.isAlNum方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。