Fixed various compile warnings (mostly XML documentation references)
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/5594d5bb Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/5594d5bb Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/5594d5bb Branch: refs/heads/master Commit: 5594d5bb98672019b742fc419505d292a763c8db Parents: 056353d Author: Shad Storhaug <[email protected]> Authored: Sat Sep 9 05:11:47 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Sat Sep 9 05:11:47 2017 +0700 ---------------------------------------------------------------------- .../Collation/ICUCollationAttributeFactory.cs | 17 +- .../Collation/ICUCollationKeyAnalyzer.cs | 17 +- .../Collation/ICUCollationKeyFilter.cs | 4 +- .../JapaneseBaseFormFilter.cs | 2 +- .../JapaneseIterationMarkCharFilter.cs | 4 +- src/Lucene.Net.Analysis.SmartCn/Utility.cs | 2 +- .../ByTask/Feeds/QueryMaker.cs | 2 +- .../ByTask/Feeds/SpatialDocMaker.cs | 2 +- .../Quality/QualityQuery.cs | 2 +- .../Support/Sax/ContentHandler.cs | 8 +- .../Support/Sax/DTDHandler.cs | 2 +- .../Support/Sax/EntityResolver.cs | 4 +- .../Support/Sax/ErrorHandler.cs | 2 +- .../Support/Sax/Ext/Attributes2.cs | 12 +- .../Support/Sax/Ext/Attributes2Impl.cs | 5 +- .../Support/Sax/Ext/Locator2.cs | 4 +- .../Support/Sax/Helpers/AttributesImpl.cs | 4 +- .../Support/Sax/Helpers/DefaultHandler.cs | 2 +- .../Support/Sax/Helpers/LocatorImpl.cs | 4 +- .../Support/Sax/Helpers/NamespaceSupport.cs | 3 +- .../Support/Sax/Helpers/XMLFilterImpl.cs | 2 +- .../Support/Sax/InputSource.cs | 2 +- .../Support/Sax/XMLReader.cs | 2 +- .../Support/TagSoup/Element.cs | 2 +- .../Support/TagSoup/ElementType.cs | 2 +- .../Support/TagSoup/HTMLScanner.cs | 310 ++-- .../Support/TagSoup/Parser.cs | 8 +- .../Support/TagSoup/XMLReader.cs | 1567 ----------------- .../Support/TagSoup/XMLWriter.cs | 1571 ++++++++++++++++++ .../IndexAndTaxonomyRevision.cs | 1 - .../Http/Abstractions/IReplicationService.cs | 2 +- .../Index/TestConcurrentMergeScheduler.cs | 2 +- src/Lucene.Net/Document/Field.cs | 2 +- src/Lucene.Net/Index/FilteredTermsEnum.cs | 10 +- src/Lucene.Net/Index/IndexWriter.cs | 5 +- src/Lucene.Net/Index/SortedDocValues.cs | 2 +- src/Lucene.Net/Index/SortedSetDocValues.cs | 2 +- src/Lucene.Net/Search/MultiCollector.cs | 2 +- src/Lucene.Net/Search/Sort.cs | 4 +- .../Search/Spans/SpanMultiTermQueryWrapper.cs | 2 +- src/Lucene.Net/Search/TermRangeFilter.cs | 2 +- .../Support/Document/DocumentExtensions.cs | 8 +- src/Lucene.Net/Support/IO/StreamTokenizer.cs | 56 +- src/Lucene.Net/Util/Constants.cs | 10 +- .../AspNetCoreReplicationRequest.cs | 2 +- 45 files changed, 1849 insertions(+), 1831 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationAttributeFactory.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationAttributeFactory.cs b/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationAttributeFactory.cs index ed4c7f9..abdd83f 100644 --- a/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationAttributeFactory.cs +++ b/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationAttributeFactory.cs @@ -3,19 +3,24 @@ using Lucene.Net.Collation.TokenAttributes; using Lucene.Net.Support; using Lucene.Net.Util; using System.Reflection; +#if NETSTANDARD +using SortKey = Icu.ObjectModel.SortKey; +#else +using SortKey = System.Globalization.SortKey; +#endif namespace Lucene.Net.Collation { /// <summary> - /// Converts each token into its <see cref="System.Globalization.SortKey"/>, and + /// Converts each token into its <see cref="SortKey"/>, and /// then encodes bytes as an index term. /// </summary> /// <remarks> /// <strong>WARNING:</strong> Make sure you use exactly the same <see cref="Collator"/> at - /// index and query time -- <see cref="System.Globalization.SortKey"/>s are only comparable when produced by + /// index and query time -- <see cref="SortKey"/>s are only comparable when produced by /// the same <see cref="Collator"/>. <see cref="RuleBasedCollator"/>s are /// independently versioned, so it is safe to search against stored - /// <see cref="System.Globalization.SortKey"/>s if the following are exactly the same (best practice is + /// <see cref="SortKey"/>s if the following are exactly the same (best practice is /// to store this information with the index and check that they remain the /// same at query time): /// <para/> @@ -24,7 +29,7 @@ namespace Lucene.Net.Collation /// <item><description>The collation strength used - see <see cref="Collator.Strength"/></description></item> /// </list> /// <para/> - /// <see cref="System.Globalization.SortKey"/>s generated by ICU Collators are not compatible with those + /// <see cref="SortKey"/>s generated by ICU Collators are not compatible with those /// generated by java.text.Collators. Specifically, if you use /// <see cref="ICUCollationAttributeFactory"/> to generate index terms, do not use /// CollationAttributeFactory on the query side, or vice versa. @@ -47,7 +52,7 @@ namespace Lucene.Net.Collation /// <see cref="AttributeSource.AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY"/> as the /// factory for all other attributes. /// </summary> - /// <param name="collator"><see cref="System.Globalization.SortKey"/> generator</param> + /// <param name="collator"><see cref="SortKey"/> generator</param> public ICUCollationAttributeFactory(Collator collator) : this(AttributeSource.AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY, collator) { @@ -58,7 +63,7 @@ namespace Lucene.Net.Collation /// Factory as the factory for all other attributes. /// </summary> /// <param name="delegate">Attribute Factory</param> - /// <param name="collator"><see cref="System.Globalization.SortKey"/> generator</param> + /// <param name="collator"><see cref="SortKey"/> generator</param> public ICUCollationAttributeFactory(AttributeSource.AttributeFactory @delegate, Collator collator) { this.@delegate = @delegate; http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyAnalyzer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyAnalyzer.cs b/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyAnalyzer.cs index 3b9d7c4..469417a 100644 --- a/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyAnalyzer.cs +++ b/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyAnalyzer.cs @@ -5,6 +5,11 @@ using Lucene.Net.Support; using Lucene.Net.Util; using System; using System.IO; +#if NETSTANDARD +using SortKey = Icu.ObjectModel.SortKey; +#else +using SortKey = System.Globalization.SortKey; +#endif namespace Lucene.Net.Collation { @@ -12,8 +17,8 @@ namespace Lucene.Net.Collation /// Configures <see cref="KeywordTokenizer"/> with <see cref="ICUCollationAttributeFactory"/>. /// </summary> /// <remarks> - /// Converts the token into its <see cref="System.Globalization.SortKey"/>, and - /// then encodes the <see cref="System.Globalization.SortKey"/> either directly or with + /// Converts the token into its <see cref="SortKey"/>, and + /// then encodes the <see cref="SortKey"/> either directly or with /// <see cref="IndexableBinaryStringTools"/> (see <a href="#version">below</a>), to allow it to /// be stored as an index term. /// <para/> @@ -21,7 +26,7 @@ namespace Lucene.Net.Collation /// index and query time -- CollationKeys are only comparable when produced by /// the same <see cref="Collator"/>. <see cref="RuleBasedCollator"/>s are /// independently versioned, so it is safe to search against stored - /// <see cref="System.Globalization.SortKey"/>s if the following are exactly the same (best practice is + /// <see cref="SortKey"/>s if the following are exactly the same (best practice is /// to store this information with the index and check that they remain the /// same at query time): /// <list type="number"> @@ -29,7 +34,7 @@ namespace Lucene.Net.Collation /// <item><description>The collation strength used - see <see cref="Collator.Strength"/></description></item> /// </list> /// <para/> - /// <see cref="System.Globalization.SortKey"/>s generated by ICU Collators are not compatible with those + /// <see cref="SortKey"/>s generated by ICU Collators are not compatible with those /// generated by java.text.Collators. Specifically, if you use /// <see cref="ICUCollationKeyAnalyzer"/> to generate index terms, do not use /// CollationKeyAnalyzer on the query side, or vice versa. @@ -45,7 +50,7 @@ namespace Lucene.Net.Collation /// You must specify the required <see cref="LuceneVersion"/> /// compatibility when creating <see cref="ICUCollationKeyAnalyzer"/>: /// <list type="bullet"> - /// <item><description>As of 4.0, <see cref="System.Globalization.SortKey"/>s are directly encoded as bytes. Previous + /// <item><description>As of 4.0, <see cref="SortKey"/>s are directly encoded as bytes. Previous /// versions will encode the bytes with <see cref="IndexableBinaryStringTools"/>.</description></item> /// </list> /// </remarks> @@ -60,7 +65,7 @@ namespace Lucene.Net.Collation /// Create a new <see cref="ICUCollationKeyAnalyzer"/>, using the specified <paramref name="collator"/>. /// </summary> /// <param name="matchVersion">See <see cref="ICUCollationKeyAnalyzer"/>.</param> - /// <param name="collator"><see cref="System.Globalization.SortKey"/> generator.</param> + /// <param name="collator"><see cref="SortKey"/> generator.</param> public ICUCollationKeyAnalyzer(LuceneVersion matchVersion, Collator collator) { this.matchVersion = matchVersion; http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyFilter.cs b/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyFilter.cs index 570ce2b..85986f3 100644 --- a/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyFilter.cs +++ b/src/Lucene.Net.Analysis.ICU/Collation/ICUCollationKeyFilter.cs @@ -22,7 +22,7 @@ namespace Lucene.Net.Collation /// index and query time -- CollationKeys are only comparable when produced by /// the same <see cref="Collator"/>. <see cref="RuleBasedCollator"/>s are /// independently versioned, so it is safe to search against stored - /// <see cref="System.Globalization.SortKey"/>s if the following are exactly the same (best practice is + /// <see cref="SortKey"/>s if the following are exactly the same (best practice is /// to store this information with the index and check that they remain the /// same at query time): /// <list type="number"> @@ -30,7 +30,7 @@ namespace Lucene.Net.Collation /// <item><description>The collation strength used - see <see cref="Collator.Strength"/></description></item> /// </list> /// <para/> - /// <see cref="System.Globalization.SortKey"/>s generated by ICU Collators are not compatible with those + /// <see cref="SortKey"/>s generated by ICU Collators are not compatible with those /// generated by java.text.Collators. Specifically, if you use /// <see cref="ICUCollationKeyAnalyzer"/> to generate index terms, do not use /// CollationKeyAnalyzer on the query side, or vice versa. http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Analysis.Kuromoji/JapaneseBaseFormFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Kuromoji/JapaneseBaseFormFilter.cs b/src/Lucene.Net.Analysis.Kuromoji/JapaneseBaseFormFilter.cs index 2117737..191de77 100644 --- a/src/Lucene.Net.Analysis.Kuromoji/JapaneseBaseFormFilter.cs +++ b/src/Lucene.Net.Analysis.Kuromoji/JapaneseBaseFormFilter.cs @@ -25,7 +25,7 @@ namespace Lucene.Net.Analysis.Ja /// <para/> /// This acts as a lemmatizer for verbs and adjectives. /// To prevent terms from being stemmed use an instance of - /// <see cref="SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/> that sets + /// <see cref="Miscellaneous.SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/> that sets /// the <see cref="IKeywordAttribute"/> before this <see cref="TokenStream"/>. /// </summary> public sealed class JapaneseBaseFormFilter : TokenFilter http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Analysis.Kuromoji/JapaneseIterationMarkCharFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Kuromoji/JapaneseIterationMarkCharFilter.cs b/src/Lucene.Net.Analysis.Kuromoji/JapaneseIterationMarkCharFilter.cs index 71566bb..e615a05 100644 --- a/src/Lucene.Net.Analysis.Kuromoji/JapaneseIterationMarkCharFilter.cs +++ b/src/Lucene.Net.Analysis.Kuromoji/JapaneseIterationMarkCharFilter.cs @@ -27,8 +27,8 @@ namespace Lucene.Net.Analysis.Ja /// <remarks> /// Sequences of iteration marks are supported. In case an illegal sequence of iteration /// marks is encountered, the implementation emits the illegal source character as-is - /// without considering its script. For example, with input "?ゝ", we get - /// "??" even though "?" isn't hiragana. + /// without considering its script. For example, with input "?ゝ", we get + /// "??" even though "?" isn't hiragana. /// <para/> /// Note that a full stop punctuation character "。" (U+3002) can not be iterated /// (see below). Iteration marks themselves can be emitted in case they are illegal, http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Analysis.SmartCn/Utility.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.SmartCn/Utility.cs b/src/Lucene.Net.Analysis.SmartCn/Utility.cs index d34252f..0615bbf 100644 --- a/src/Lucene.Net.Analysis.SmartCn/Utility.cs +++ b/src/Lucene.Net.Analysis.SmartCn/Utility.cs @@ -34,7 +34,7 @@ namespace Lucene.Net.Analysis.Cn.Smart public static readonly char[] END_CHAR_ARRAY = "æ«##æ«".ToCharArray(); /// <summary> - /// Delimiters will be filtered to this character by <see cref="HHMM.SegTokenFilter"/> + /// Delimiters will be filtered to this character by <see cref="Hhmm.SegTokenFilter"/> /// </summary> public static readonly char[] COMMON_DELIMITER = new char[] { ',' }; http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/ByTask/Feeds/QueryMaker.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/ByTask/Feeds/QueryMaker.cs b/src/Lucene.Net.Benchmark/ByTask/Feeds/QueryMaker.cs index 2ece812..b5d00ac 100644 --- a/src/Lucene.Net.Benchmark/ByTask/Feeds/QueryMaker.cs +++ b/src/Lucene.Net.Benchmark/ByTask/Feeds/QueryMaker.cs @@ -30,7 +30,7 @@ namespace Lucene.Net.Benchmarks.ByTask.Feeds /// </summary> /// <param name="size">The size of the query - number of terms, etc.</param> /// <returns></returns> - /// <exception cref="Exception">If cannot make the query, or if size > 0 was specified but this feature is not supported.</exception> + /// <exception cref="System.Exception">If cannot make the query, or if size > 0 was specified but this feature is not supported.</exception> Query MakeQuery(int size); /// <summary>Create the next query</summary> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/ByTask/Feeds/SpatialDocMaker.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/ByTask/Feeds/SpatialDocMaker.cs b/src/Lucene.Net.Benchmark/ByTask/Feeds/SpatialDocMaker.cs index 7879cd8..9b979cc 100644 --- a/src/Lucene.Net.Benchmark/ByTask/Feeds/SpatialDocMaker.cs +++ b/src/Lucene.Net.Benchmark/ByTask/Feeds/SpatialDocMaker.cs @@ -240,7 +240,7 @@ namespace Lucene.Net.Benchmarks.ByTask.Feeds /// <summary> /// Converts one shape to another. Created by - /// <see cref="MakeShapeConverter(SpatialStrategy, Config, string)"/>. + /// <see cref="SpatialDocMaker.MakeShapeConverter(SpatialStrategy, Config, string)"/>. /// </summary> public interface IShapeConverter { http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Quality/QualityQuery.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Quality/QualityQuery.cs b/src/Lucene.Net.Benchmark/Quality/QualityQuery.cs index de4a945..def489d4 100644 --- a/src/Lucene.Net.Benchmark/Quality/QualityQuery.cs +++ b/src/Lucene.Net.Benchmark/Quality/QualityQuery.cs @@ -29,7 +29,7 @@ namespace Lucene.Net.Benchmarks.Quality /// The ID allows to map the quality query with its judgements. /// <para/> /// The name-value pairs are used by a - /// <see cref="QualityQueryParser"/> + /// <see cref="IQualityQueryParser"/> /// to create a Lucene <see cref="Search.Query"/>. /// <para/> /// It is very likely that name-value-pairs would be mapped into fields in a Lucene query, http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/ContentHandler.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/ContentHandler.cs b/src/Lucene.Net.Benchmark/Support/Sax/ContentHandler.cs index 3f03aae..9c72348 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/ContentHandler.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/ContentHandler.cs @@ -22,12 +22,14 @@ namespace Sax /// method.The parser uses the instance to report /// basic document-related events like the start and end of elements /// and character data. - /// <para/>The order of events in this interface is very important, and + /// <para/> + /// The order of events in this interface is very important, and /// mirrors the order of information in the document itself.For /// example, all of an element's content (character data, processing /// instructions, and/or subelements) will appear, in order, between - /// the startElement event and the corresponding endElement event.</p> - /// <p>This interface is similar to the now-deprecated SAX 1.0 + /// the startElement event and the corresponding endElement event. + /// <para/> + /// This interface is similar to the now-deprecated SAX 1.0 /// DocumentHandler interface, but it adds support for Namespaces /// and for reporting skipped entities(in non-validating XML /// processors). http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/DTDHandler.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/DTDHandler.cs b/src/Lucene.Net.Benchmark/Support/Sax/DTDHandler.cs index b96777b..c62c6dd 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/DTDHandler.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/DTDHandler.cs @@ -41,7 +41,7 @@ namespace Sax /// obtained through this interface to find the entity and/or /// notation corresponding with the attribute value. /// </remarks> - /// <seealso cref="IXMLReader.SetDTDHandler"/> + /// <seealso cref="IXMLReader.DTDHandler"/> public interface IDTDHandler { /// <summary> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/EntityResolver.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/EntityResolver.cs b/src/Lucene.Net.Benchmark/Support/Sax/EntityResolver.cs index a66bedd..966b743 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/EntityResolver.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/EntityResolver.cs @@ -100,8 +100,8 @@ namespace Sax /// or null to request that the parser open a regular /// URI connection to the system identifier.</returns> /// <exception cref="SAXException">Any SAX exception, possibly wrapping another exception.</exception> - /// <exception cref="IOException">A .NET-specific IO exception, possibly the result of creating - /// a new <see cref="InputStream"/> or <see cref="System.IO.TextReader"/> for the <see cref="InputSource"/>.</exception> + /// <exception cref="System.IO.IOException">A .NET-specific IO exception, possibly the result of creating + /// a new <see cref="System.IO.Stream"/> or <see cref="System.IO.TextReader"/> for the <see cref="InputSource"/>.</exception> /// <seealso cref="InputSource"/> InputSource ResolveEntity(string publicId, string systemId); http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/ErrorHandler.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/ErrorHandler.cs b/src/Lucene.Net.Benchmark/Support/Sax/ErrorHandler.cs index 785e697..649a338 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/ErrorHandler.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/ErrorHandler.cs @@ -35,7 +35,7 @@ namespace Sax /// <see cref="FatalError(SAXParseException)"/>. In other words, a SAX driver class /// may throw an exception after reporting any fatalError. /// Also parsers may throw appropriate exceptions for non - XML errors. - /// For example, <see cref="IXMLReader.Parse()"/> would throw + /// For example, <see cref="IXMLReader.Parse(InputSource)"/> would throw /// an <see cref="System.IO.IOException"/> for errors accessing entities or the document. /// </remarks> /// <since>SAX 1.0</since> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2.cs b/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2.cs index 87248dd..6a3fc75 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2.cs @@ -39,7 +39,7 @@ namespace Sax.Ext /// </summary> /// <param name="index">The attribute index (zero-based).</param> /// <returns>true if the attribute was declared in the DTD, false otherwise.</returns> - /// <exception cref="IndexOutOfRangeException">When the supplied index does not identify an attribute.</exception> + /// <exception cref="System.IndexOutOfRangeException">When the supplied index does not identify an attribute.</exception> bool IsDeclared(int index); /// <summary> @@ -50,7 +50,7 @@ namespace Sax.Ext /// </summary> /// <param name="qName">The XML qualified (prefixed) name.</param> /// <returns>true if the attribute was declared in the DTD, false otherwise.</returns> - /// <exception cref="ArgumentException">When the supplied name does not identify an attribute.</exception> + /// <exception cref="System.ArgumentException">When the supplied name does not identify an attribute.</exception> bool IsDeclared(string qName); /// <summary> @@ -68,7 +68,7 @@ namespace Sax.Ext /// <param name="uri">The Namespace URI, or the empty string if the name has no Namespace URI.</param> /// <param name="localName">The attribute's local name.</param> /// <returns>true if the attribute was declared in the DTD, false otherwise.</returns> - /// <exception cref="ArgumentException">When the supplied names do not identify an attribute.</exception> + /// <exception cref="System.ArgumentException">When the supplied names do not identify an attribute.</exception> bool IsDeclared(string uri, string localName); /// <summary> @@ -77,7 +77,7 @@ namespace Sax.Ext /// </summary> /// <param name="index">The attribute index (zero-based).</param> /// <returns>true if the value was found in the XML text, false if the value was provided by DTD defaulting.</returns> - /// <exception cref="IndexOutOfRangeException">When the supplied index does not identify an attribute.</exception> + /// <exception cref="System.IndexOutOfRangeException">When the supplied index does not identify an attribute.</exception> bool IsSpecified(int index); /// <summary> @@ -93,7 +93,7 @@ namespace Sax.Ext /// <param name="uri">The Namespace URI, or the empty string if the name has no Namespace URI.</param> /// <param name="localName">The attribute's local name.</param> /// <returns>true if the value was found in the XML text, false if the value was provided by DTD defaulting.</returns> - /// <exception cref="ArgumentException">When the supplied names do not identify an attribute.</exception> + /// <exception cref="System.ArgumentException">When the supplied names do not identify an attribute.</exception> bool IsSpecified(string uri, string localName); /// <summary> @@ -102,7 +102,7 @@ namespace Sax.Ext /// </summary> /// <param name="qName">The XML qualified (prefixed) name.</param> /// <returns>true if the value was found in the XML text, false if the value was provided by DTD defaulting.</returns> - /// <exception cref="ArgumentException">When the supplied name does not identify an attribute.</exception> + /// <exception cref="System.ArgumentException">When the supplied name does not identify an attribute.</exception> bool IsSpecified(string qName); } } http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2Impl.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2Impl.cs b/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2Impl.cs index b6c30ed..062e3fd 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2Impl.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Ext/Attributes2Impl.cs @@ -111,7 +111,7 @@ namespace Sax.Ext /// <summary> /// Returns the current value of an attribute's "specified" flag. /// </summary> - /// <param name="qName">The attribute index (zero-based).</param> + /// <param name="index">The attribute index (zero-based).</param> /// <returns>current flag value</returns> /// <exception cref="IndexOutOfRangeException">When the supplied index does not identify an attribute.</exception> public bool IsSpecified(int index) @@ -198,7 +198,8 @@ namespace Sax.Ext /// Add an attribute to the end of the list, setting its /// "specified" flag to true. To set that flag's value /// to false, use <see cref="SetSpecified(int, bool)"/>. - /// <p>Unless the attribute <em>type</em> is CDATA, this attribute + /// <para/> + /// Unless the attribute <em>type</em> is CDATA, this attribute /// is marked as being declared in the DTD. To set that flag's value /// to true for CDATA attributes, use <see cref="SetDeclared(int, bool)"/>. /// </summary> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Ext/Locator2.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Ext/Locator2.cs b/src/Lucene.Net.Benchmark/Support/Sax/Ext/Locator2.cs index 907d427..741dfc0 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Ext/Locator2.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Ext/Locator2.cs @@ -32,7 +32,7 @@ namespace Sax.Ext /// <summary> /// Returns the version of XML used for the entity. This will /// normally be the identifier from the current entity's - /// <em><?xml version='...' ...?></em> declaration, + /// <em><?xml version='...' ...?></em> declaration, /// or be defaulted by the parser. /// </summary> string XMLVersion { get; } @@ -41,7 +41,7 @@ namespace Sax.Ext /// Returns the name of the character encoding for the entity. /// If the encoding was declared externally(for example, in a MIME /// Content-Type header), that will be the name returned.Else if there - /// was an<em><?xml ...encoding='...'?></em> declaration at + /// was an<em><?xml ...encoding='...'?></em> declaration at /// the start of the document, that encoding name will be returned. /// Otherwise the encoding will been inferred (normally to be UTF-8, or /// some UTF-16 variant), and that inferred name will be returned. http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Helpers/AttributesImpl.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/AttributesImpl.cs b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/AttributesImpl.cs index 53dc226..8becc1c 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/AttributesImpl.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/AttributesImpl.cs @@ -182,7 +182,7 @@ namespace Sax.Helpers /// <remarks>In many cases, it will be more efficient to look up the name once and /// use the index query methods rather than using the name query methods /// repeatedly.</remarks> - /// <param name="index">The attribute's Namespace URI, or the empty + /// <param name="uri">The attribute's Namespace URI, or the empty /// string if none is available.</param> /// <param name="localName">The attribute's local name.</param> /// <returns>The attribute's index, or -1 if none matches.</returns> @@ -319,7 +319,7 @@ namespace Sax.Helpers /// Note that little memory is freed by this call: /// the current array is kept so it can be /// reused. - /// <summary> + /// </summary> public virtual void Clear() { if (data != null) http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Helpers/DefaultHandler.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/DefaultHandler.cs b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/DefaultHandler.cs index d3523a4..4e873e3 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/DefaultHandler.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/DefaultHandler.cs @@ -202,7 +202,7 @@ namespace Sax.Helpers /// each element (such as allocating a new tree node or writing /// output to a file). /// </summary> - /// <param name="prefix">The Namespace URI, or the empty string if the + /// <param name="uri">The Namespace URI, or the empty string if the /// element has no Namespace URI or if Namespace /// processing is not being performed.</param> /// <param name="localName">The local name (without prefix), or the http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Helpers/LocatorImpl.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/LocatorImpl.cs b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/LocatorImpl.cs index 8356240..d6a1a91 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/LocatorImpl.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/LocatorImpl.cs @@ -45,7 +45,7 @@ namespace Sax.Helpers /// Zero-argument constructor. /// <para/>This will not normally be useful, since the main purpose /// of this class is to make a snapshot of an existing <see cref="ILocator"/>. - /// <summary> + /// </summary> public Locator() { } @@ -57,7 +57,7 @@ namespace Sax.Helpers /// When the original locator changes, this copy will still keep /// the original values (and it can be used outside the scope of /// DocumentHandler methods). - /// <summary> + /// </summary> /// <param name="locator">The locator to copy.</param> public Locator(ILocator locator) { http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Helpers/NamespaceSupport.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/NamespaceSupport.cs b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/NamespaceSupport.cs index c1c81d3..3651a2d 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/NamespaceSupport.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/NamespaceSupport.cs @@ -617,12 +617,11 @@ namespace Sax.Helpers /// </summary> /// <param name="qName">The XML qualified name.</param> /// <param name="isAttribute">true if this is an attribute name.</param> - /// <param name="namespaceDeclUris"></param> /// <returns>An array of three strings containing the /// URI part (or empty string), the local part, /// and the raw name, all internalized, or null /// if there is an undeclared prefix.</returns> - /// <seealso cref="NamespaceSupport.ProcessName(string, bool)"/> + /// <seealso cref="DeclarePrefix(string, string)"/> internal string[] ProcessName(string qName, bool isAttribute) { string[] name; http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/Helpers/XMLFilterImpl.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/XMLFilterImpl.cs b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/XMLFilterImpl.cs index cbf9e6d..552ce2f 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/Helpers/XMLFilterImpl.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/Helpers/XMLFilterImpl.cs @@ -37,7 +37,7 @@ namespace Sax.Helpers /// This filter will have no parent: you must assign a parent /// before you start a parse or do any configuration with /// setFeature or setProperty, unless you use this as a pure event - /// consumer rather than as an <see cref="IXmlReader" />. + /// consumer rather than as an <see cref="IXMLReader" />. /// </para> /// </summary> /// <seealso cref="IXMLReader.SetFeature" /> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/InputSource.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/InputSource.cs b/src/Lucene.Net.Benchmark/Support/Sax/InputSource.cs index 00b3490..9b64b0a 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/InputSource.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/InputSource.cs @@ -23,7 +23,7 @@ namespace Sax /// with a specified encoding), and/or a character stream. /// <para/> /// There are two places that the application can deliver an - /// input source to the parser: as the argument to the <see cref="IParser.Parse(InputSource)"/> + /// input source to the parser: as the argument to the IParser.Parse(InputSource) /// method, or as the return value of the <see cref="IEntityResolver.ResolveEntity(string, string)"/> /// method. /// <para/> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/Sax/XMLReader.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/Sax/XMLReader.cs b/src/Lucene.Net.Benchmark/Support/Sax/XMLReader.cs index 71b690f..aad50e9 100644 --- a/src/Lucene.Net.Benchmark/Support/Sax/XMLReader.cs +++ b/src/Lucene.Net.Benchmark/Support/Sax/XMLReader.cs @@ -294,7 +294,7 @@ namespace Sax /// <para/>If the system identifier is a URL, it must be fully resolved /// by the application before it is passed to the parser. /// </remarks> - /// <param name="input">The system identifier (URI).</param> + /// <param name="systemId">The system identifier (URI).</param> /// <exception cref="SAXException">Any SAX exception, possibly /// wrapping another exception.</exception> /// <exception cref="System.IO.IOException">An IO exception from the parser, http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/TagSoup/Element.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/TagSoup/Element.cs b/src/Lucene.Net.Benchmark/Support/TagSoup/Element.cs index dca7eed..30aeb0b 100644 --- a/src/Lucene.Net.Benchmark/Support/TagSoup/Element.cs +++ b/src/Lucene.Net.Benchmark/Support/TagSoup/Element.cs @@ -21,7 +21,7 @@ namespace TagSoup /// for use in constructing stacks and queues of Elements. /// </summary> /// <seealso cref="ElementType" /> - /// <seealso cref="Sax.Net.Helpers.Attributes" /> + /// <seealso cref="Sax.Helpers.Attributes" /> public class Element { private readonly Attributes _atts; // attributes of element http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/TagSoup/ElementType.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/TagSoup/ElementType.cs b/src/Lucene.Net.Benchmark/Support/TagSoup/ElementType.cs index 0884588..0827ad6 100644 --- a/src/Lucene.Net.Benchmark/Support/TagSoup/ElementType.cs +++ b/src/Lucene.Net.Benchmark/Support/TagSoup/ElementType.cs @@ -34,7 +34,7 @@ namespace TagSoup /// <summary> /// Construct an <see cref="ElementType"/>: - /// but it's better to use <see cref="Schema.Element()"/> instead. + /// but it's better to use <see cref="Schema.ElementType(string, int, int, int)"/> instead. /// The content model, member-of, and flags vectors are specified as ints. /// </summary> /// <param name="name">The element type name</param> http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/TagSoup/HTMLScanner.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/TagSoup/HTMLScanner.cs b/src/Lucene.Net.Benchmark/Support/TagSoup/HTMLScanner.cs index ed41f84..731b2e9 100644 --- a/src/Lucene.Net.Benchmark/Support/TagSoup/HTMLScanner.cs +++ b/src/Lucene.Net.Benchmark/Support/TagSoup/HTMLScanner.cs @@ -96,156 +96,156 @@ namespace TagSoup private const int A_UNGET = 31; private const int A_UNSAVE_PCDATA = 32; private static int[] statetable = { - S_ANAME, '/', A_ANAME_ADUP, S_EMPTYTAG, - S_ANAME, '=', A_ANAME, S_AVAL, - S_ANAME, '>', A_ANAME_ADUP_STAGC, S_PCDATA, - S_ANAME, 0, A_SAVE, S_ANAME, - S_ANAME, -1, A_ANAME_ADUP_STAGC, S_DONE, - S_ANAME, ' ', A_ANAME, S_EQ, - S_ANAME, '\n', A_ANAME, S_EQ, - S_ANAME, '\t', A_ANAME, S_EQ, - S_APOS, '\'', A_AVAL, S_TAGWS, - S_APOS, 0, A_SAVE, S_APOS, - S_APOS, -1, A_AVAL_STAGC, S_DONE, - S_APOS, ' ', A_SP, S_APOS, - S_APOS, '\n', A_SP, S_APOS, - S_APOS, '\t', A_SP, S_APOS, - S_AVAL, '\'', A_SKIP, S_APOS, - S_AVAL, '"', A_SKIP, S_QUOT, - S_AVAL, '>', A_AVAL_STAGC, S_PCDATA, - S_AVAL, 0, A_SAVE, S_STAGC, - S_AVAL, -1, A_AVAL_STAGC, S_DONE, - S_AVAL, ' ', A_SKIP, S_AVAL, - S_AVAL, '\n', A_SKIP, S_AVAL, - S_AVAL, '\t', A_SKIP, S_AVAL, - S_BB, 'C', A_SKIP, S_BBC, - S_BB, 0, A_SKIP, S_DECL, - S_BB, -1, A_SKIP, S_DONE, - S_BBC, 'D', A_SKIP, S_BBCD, - S_BBC, 0, A_SKIP, S_DECL, - S_BBC, -1, A_SKIP, S_DONE, - S_BBCD, 'A', A_SKIP, S_BBCDA, - S_BBCD, 0, A_SKIP, S_DECL, - S_BBCD, -1, A_SKIP, S_DONE, - S_BBCDA, 'T', A_SKIP, S_BBCDAT, - S_BBCDA, 0, A_SKIP, S_DECL, - S_BBCDA, -1, A_SKIP, S_DONE, - S_BBCDAT, 'A', A_SKIP, S_BBCDATA, - S_BBCDAT, 0, A_SKIP, S_DECL, - S_BBCDAT, -1, A_SKIP, S_DONE, - S_BBCDATA, '[', A_SKIP, S_CDSECT, - S_BBCDATA, 0, A_SKIP, S_DECL, - S_BBCDATA, -1, A_SKIP, S_DONE, - S_CDATA, '<', A_SAVE, S_CDATA2, - S_CDATA, 0, A_SAVE, S_CDATA, - S_CDATA, -1, A_PCDATA, S_DONE, - S_CDATA2, '/', A_UNSAVE_PCDATA, S_ETAG, - S_CDATA2, 0, A_SAVE, S_CDATA, - S_CDATA2, -1, A_UNSAVE_PCDATA, S_DONE, - S_CDSECT, ']', A_SAVE, S_CDSECT1, - S_CDSECT, 0, A_SAVE, S_CDSECT, - S_CDSECT, -1, A_SKIP, S_DONE, - S_CDSECT1, ']', A_SAVE, S_CDSECT2, - S_CDSECT1, 0, A_SAVE, S_CDSECT, - S_CDSECT1, -1, A_SKIP, S_DONE, - S_CDSECT2, '>', A_CDATA, S_PCDATA, - S_CDSECT2, 0, A_SAVE, S_CDSECT, - S_CDSECT2, -1, A_SKIP, S_DONE, - S_COM, '-', A_SKIP, S_COM2, - S_COM, 0, A_SAVE, S_COM2, - S_COM, -1, A_CMNT, S_DONE, - S_COM2, '-', A_SKIP, S_COM3, - S_COM2, 0, A_SAVE, S_COM2, - S_COM2, -1, A_CMNT, S_DONE, - S_COM3, '-', A_SKIP, S_COM4, - S_COM3, 0, A_MINUS, S_COM2, - S_COM3, -1, A_CMNT, S_DONE, - S_COM4, '-', A_MINUS3, S_COM4, - S_COM4, '>', A_CMNT, S_PCDATA, - S_COM4, 0, A_MINUS2, S_COM2, - S_COM4, -1, A_CMNT, S_DONE, - S_DECL, '-', A_SKIP, S_COM, - S_DECL, '[', A_SKIP, S_BB, - S_DECL, '>', A_SKIP, S_PCDATA, - S_DECL, 0, A_SAVE, S_DECL2, - S_DECL, -1, A_SKIP, S_DONE, - S_DECL2, '>', A_DECL, S_PCDATA, - S_DECL2, 0, A_SAVE, S_DECL2, - S_DECL2, -1, A_SKIP, S_DONE, - S_EMPTYTAG, '>', A_EMPTYTAG, S_PCDATA, - S_EMPTYTAG, 0, A_SAVE, S_ANAME, - S_EMPTYTAG, ' ', A_SKIP, S_TAGWS, - S_EMPTYTAG, '\n', A_SKIP, S_TAGWS, - S_EMPTYTAG, '\t', A_SKIP, S_TAGWS, - S_ENT, 0, A_ENTITY, S_ENT, - S_ENT, -1, A_ENTITY, S_DONE, - S_EQ, '=', A_SKIP, S_AVAL, - S_EQ, '>', A_ADUP_STAGC, S_PCDATA, - S_EQ, 0, A_ADUP_SAVE, S_ANAME, - S_EQ, -1, A_ADUP_STAGC, S_DONE, - S_EQ, ' ', A_SKIP, S_EQ, - S_EQ, '\n', A_SKIP, S_EQ, - S_EQ, '\t', A_SKIP, S_EQ, - S_ETAG, '>', A_ETAG, S_PCDATA, - S_ETAG, 0, A_SAVE, S_ETAG, - S_ETAG, -1, A_ETAG, S_DONE, - S_ETAG, ' ', A_SKIP, S_ETAG, - S_ETAG, '\n', A_SKIP, S_ETAG, - S_ETAG, '\t', A_SKIP, S_ETAG, - S_GI, '/', A_SKIP, S_EMPTYTAG, - S_GI, '>', A_GI_STAGC, S_PCDATA, - S_GI, 0, A_SAVE, S_GI, - S_GI, -1, A_SKIP, S_DONE, - S_GI, ' ', A_GI, S_TAGWS, - S_GI, '\n', A_GI, S_TAGWS, - S_GI, '\t', A_GI, S_TAGWS, - S_NCR, 0, A_ENTITY, S_NCR, - S_NCR, -1, A_ENTITY, S_DONE, - S_PCDATA, '&', A_ENTITY_START, S_ENT, - S_PCDATA, '<', A_PCDATA, S_TAG, - S_PCDATA, 0, A_SAVE, S_PCDATA, - S_PCDATA, -1, A_PCDATA, S_DONE, - S_PI, '>', A_PI, S_PCDATA, - S_PI, 0, A_SAVE, S_PI, - S_PI, -1, A_PI, S_DONE, - S_PITARGET, '>', A_PITARGET_PI, S_PCDATA, - S_PITARGET, 0, A_SAVE, S_PITARGET, - S_PITARGET, -1, A_PITARGET_PI, S_DONE, - S_PITARGET, ' ', A_PITARGET, S_PI, - S_PITARGET, '\n', A_PITARGET, S_PI, - S_PITARGET, '\t', A_PITARGET, S_PI, - S_QUOT, '"', A_AVAL, S_TAGWS, - S_QUOT, 0, A_SAVE, S_QUOT, - S_QUOT, -1, A_AVAL_STAGC, S_DONE, - S_QUOT, ' ', A_SP, S_QUOT, - S_QUOT, '\n', A_SP, S_QUOT, - S_QUOT, '\t', A_SP, S_QUOT, - S_STAGC, '>', A_AVAL_STAGC, S_PCDATA, - S_STAGC, 0, A_SAVE, S_STAGC, - S_STAGC, -1, A_AVAL_STAGC, S_DONE, - S_STAGC, ' ', A_AVAL, S_TAGWS, - S_STAGC, '\n', A_AVAL, S_TAGWS, - S_STAGC, '\t', A_AVAL, S_TAGWS, - S_TAG, '!', A_SKIP, S_DECL, - S_TAG, '/', A_SKIP, S_ETAG, - S_TAG, '?', A_SKIP, S_PITARGET, - S_TAG, '<', A_SAVE, S_TAG, - S_TAG, 0, A_SAVE, S_GI, - S_TAG, -1, A_LT_PCDATA, S_DONE, - S_TAG, ' ', A_LT, S_PCDATA, - S_TAG, '\n', A_LT, S_PCDATA, - S_TAG, '\t', A_LT, S_PCDATA, - S_TAGWS, '/', A_SKIP, S_EMPTYTAG, - S_TAGWS, '>', A_STAGC, S_PCDATA, - S_TAGWS, 0, A_SAVE, S_ANAME, - S_TAGWS, -1, A_STAGC, S_DONE, - S_TAGWS, ' ', A_SKIP, S_TAGWS, - S_TAGWS, '\n', A_SKIP, S_TAGWS, - S_TAGWS, '\t', A_SKIP, S_TAGWS, - S_XNCR, 0, A_ENTITY, S_XNCR, - S_XNCR, -1, A_ENTITY, S_DONE, - - }; + S_ANAME, '/', A_ANAME_ADUP, S_EMPTYTAG, + S_ANAME, '=', A_ANAME, S_AVAL, + S_ANAME, '>', A_ANAME_ADUP_STAGC, S_PCDATA, + S_ANAME, 0, A_SAVE, S_ANAME, + S_ANAME, -1, A_ANAME_ADUP_STAGC, S_DONE, + S_ANAME, ' ', A_ANAME, S_EQ, + S_ANAME, '\n', A_ANAME, S_EQ, + S_ANAME, '\t', A_ANAME, S_EQ, + S_APOS, '\'', A_AVAL, S_TAGWS, + S_APOS, 0, A_SAVE, S_APOS, + S_APOS, -1, A_AVAL_STAGC, S_DONE, + S_APOS, ' ', A_SP, S_APOS, + S_APOS, '\n', A_SP, S_APOS, + S_APOS, '\t', A_SP, S_APOS, + S_AVAL, '\'', A_SKIP, S_APOS, + S_AVAL, '"', A_SKIP, S_QUOT, + S_AVAL, '>', A_AVAL_STAGC, S_PCDATA, + S_AVAL, 0, A_SAVE, S_STAGC, + S_AVAL, -1, A_AVAL_STAGC, S_DONE, + S_AVAL, ' ', A_SKIP, S_AVAL, + S_AVAL, '\n', A_SKIP, S_AVAL, + S_AVAL, '\t', A_SKIP, S_AVAL, + S_BB, 'C', A_SKIP, S_BBC, + S_BB, 0, A_SKIP, S_DECL, + S_BB, -1, A_SKIP, S_DONE, + S_BBC, 'D', A_SKIP, S_BBCD, + S_BBC, 0, A_SKIP, S_DECL, + S_BBC, -1, A_SKIP, S_DONE, + S_BBCD, 'A', A_SKIP, S_BBCDA, + S_BBCD, 0, A_SKIP, S_DECL, + S_BBCD, -1, A_SKIP, S_DONE, + S_BBCDA, 'T', A_SKIP, S_BBCDAT, + S_BBCDA, 0, A_SKIP, S_DECL, + S_BBCDA, -1, A_SKIP, S_DONE, + S_BBCDAT, 'A', A_SKIP, S_BBCDATA, + S_BBCDAT, 0, A_SKIP, S_DECL, + S_BBCDAT, -1, A_SKIP, S_DONE, + S_BBCDATA, '[', A_SKIP, S_CDSECT, + S_BBCDATA, 0, A_SKIP, S_DECL, + S_BBCDATA, -1, A_SKIP, S_DONE, + S_CDATA, '<', A_SAVE, S_CDATA2, + S_CDATA, 0, A_SAVE, S_CDATA, + S_CDATA, -1, A_PCDATA, S_DONE, + S_CDATA2, '/', A_UNSAVE_PCDATA, S_ETAG, + S_CDATA2, 0, A_SAVE, S_CDATA, + S_CDATA2, -1, A_UNSAVE_PCDATA, S_DONE, + S_CDSECT, ']', A_SAVE, S_CDSECT1, + S_CDSECT, 0, A_SAVE, S_CDSECT, + S_CDSECT, -1, A_SKIP, S_DONE, + S_CDSECT1, ']', A_SAVE, S_CDSECT2, + S_CDSECT1, 0, A_SAVE, S_CDSECT, + S_CDSECT1, -1, A_SKIP, S_DONE, + S_CDSECT2, '>', A_CDATA, S_PCDATA, + S_CDSECT2, 0, A_SAVE, S_CDSECT, + S_CDSECT2, -1, A_SKIP, S_DONE, + S_COM, '-', A_SKIP, S_COM2, + S_COM, 0, A_SAVE, S_COM2, + S_COM, -1, A_CMNT, S_DONE, + S_COM2, '-', A_SKIP, S_COM3, + S_COM2, 0, A_SAVE, S_COM2, + S_COM2, -1, A_CMNT, S_DONE, + S_COM3, '-', A_SKIP, S_COM4, + S_COM3, 0, A_MINUS, S_COM2, + S_COM3, -1, A_CMNT, S_DONE, + S_COM4, '-', A_MINUS3, S_COM4, + S_COM4, '>', A_CMNT, S_PCDATA, + S_COM4, 0, A_MINUS2, S_COM2, + S_COM4, -1, A_CMNT, S_DONE, + S_DECL, '-', A_SKIP, S_COM, + S_DECL, '[', A_SKIP, S_BB, + S_DECL, '>', A_SKIP, S_PCDATA, + S_DECL, 0, A_SAVE, S_DECL2, + S_DECL, -1, A_SKIP, S_DONE, + S_DECL2, '>', A_DECL, S_PCDATA, + S_DECL2, 0, A_SAVE, S_DECL2, + S_DECL2, -1, A_SKIP, S_DONE, + S_EMPTYTAG, '>', A_EMPTYTAG, S_PCDATA, + S_EMPTYTAG, 0, A_SAVE, S_ANAME, + S_EMPTYTAG, ' ', A_SKIP, S_TAGWS, + S_EMPTYTAG, '\n', A_SKIP, S_TAGWS, + S_EMPTYTAG, '\t', A_SKIP, S_TAGWS, + S_ENT, 0, A_ENTITY, S_ENT, + S_ENT, -1, A_ENTITY, S_DONE, + S_EQ, '=', A_SKIP, S_AVAL, + S_EQ, '>', A_ADUP_STAGC, S_PCDATA, + S_EQ, 0, A_ADUP_SAVE, S_ANAME, + S_EQ, -1, A_ADUP_STAGC, S_DONE, + S_EQ, ' ', A_SKIP, S_EQ, + S_EQ, '\n', A_SKIP, S_EQ, + S_EQ, '\t', A_SKIP, S_EQ, + S_ETAG, '>', A_ETAG, S_PCDATA, + S_ETAG, 0, A_SAVE, S_ETAG, + S_ETAG, -1, A_ETAG, S_DONE, + S_ETAG, ' ', A_SKIP, S_ETAG, + S_ETAG, '\n', A_SKIP, S_ETAG, + S_ETAG, '\t', A_SKIP, S_ETAG, + S_GI, '/', A_SKIP, S_EMPTYTAG, + S_GI, '>', A_GI_STAGC, S_PCDATA, + S_GI, 0, A_SAVE, S_GI, + S_GI, -1, A_SKIP, S_DONE, + S_GI, ' ', A_GI, S_TAGWS, + S_GI, '\n', A_GI, S_TAGWS, + S_GI, '\t', A_GI, S_TAGWS, + S_NCR, 0, A_ENTITY, S_NCR, + S_NCR, -1, A_ENTITY, S_DONE, + S_PCDATA, '&', A_ENTITY_START, S_ENT, + S_PCDATA, '<', A_PCDATA, S_TAG, + S_PCDATA, 0, A_SAVE, S_PCDATA, + S_PCDATA, -1, A_PCDATA, S_DONE, + S_PI, '>', A_PI, S_PCDATA, + S_PI, 0, A_SAVE, S_PI, + S_PI, -1, A_PI, S_DONE, + S_PITARGET, '>', A_PITARGET_PI, S_PCDATA, + S_PITARGET, 0, A_SAVE, S_PITARGET, + S_PITARGET, -1, A_PITARGET_PI, S_DONE, + S_PITARGET, ' ', A_PITARGET, S_PI, + S_PITARGET, '\n', A_PITARGET, S_PI, + S_PITARGET, '\t', A_PITARGET, S_PI, + S_QUOT, '"', A_AVAL, S_TAGWS, + S_QUOT, 0, A_SAVE, S_QUOT, + S_QUOT, -1, A_AVAL_STAGC, S_DONE, + S_QUOT, ' ', A_SP, S_QUOT, + S_QUOT, '\n', A_SP, S_QUOT, + S_QUOT, '\t', A_SP, S_QUOT, + S_STAGC, '>', A_AVAL_STAGC, S_PCDATA, + S_STAGC, 0, A_SAVE, S_STAGC, + S_STAGC, -1, A_AVAL_STAGC, S_DONE, + S_STAGC, ' ', A_AVAL, S_TAGWS, + S_STAGC, '\n', A_AVAL, S_TAGWS, + S_STAGC, '\t', A_AVAL, S_TAGWS, + S_TAG, '!', A_SKIP, S_DECL, + S_TAG, '/', A_SKIP, S_ETAG, + S_TAG, '?', A_SKIP, S_PITARGET, + S_TAG, '<', A_SAVE, S_TAG, + S_TAG, 0, A_SAVE, S_GI, + S_TAG, -1, A_LT_PCDATA, S_DONE, + S_TAG, ' ', A_LT, S_PCDATA, + S_TAG, '\n', A_LT, S_PCDATA, + S_TAG, '\t', A_LT, S_PCDATA, + S_TAGWS, '/', A_SKIP, S_EMPTYTAG, + S_TAGWS, '>', A_STAGC, S_PCDATA, + S_TAGWS, 0, A_SAVE, S_ANAME, + S_TAGWS, -1, A_STAGC, S_DONE, + S_TAGWS, ' ', A_SKIP, S_TAGWS, + S_TAGWS, '\n', A_SKIP, S_TAGWS, + S_TAGWS, '\t', A_SKIP, S_TAGWS, + S_XNCR, 0, A_ENTITY, S_XNCR, + S_XNCR, -1, A_ENTITY, S_DONE, + + }; private static readonly string[] debug_actionnames = { "", "A_ADUP", "A_ADUP_SAVE", "A_ADUP_STAGC", "A_ANAME", "A_ANAME_ADUP", "A_ANAME_ADUP_STAGC", "A_AVAL", "A_AVAL_STAGC", "A_CDATA", "A_CMNT", "A_DECL", "A_EMPTYTAG", "A_ENTITY", "A_ENTITY_START", "A_ETAG", "A_GI", "A_GI_STAGC", "A_LT", "A_LT_PCDATA", "A_MINUS", "A_MINUS2", "A_MINUS3", "A_PCDATA", "A_PI", "A_PITARGET", "A_PITARGET_PI", "A_SAVE", "A_SKIP", "A_SP", "A_STAGC", "A_UNGET", "A_UNSAVE_PCDATA" }; private static readonly string[] debug_statenames = { "", "S_ANAME", "S_APOS", "S_AVAL", "S_BB", "S_BBC", "S_BBCD", "S_BBCDA", "S_BBCDAT", "S_BBCDATA", "S_CDATA", "S_CDATA2", "S_CDSECT", "S_CDSECT1", "S_CDSECT2", "S_COM", "S_COM2", "S_COM3", "S_COM4", "S_DECL", "S_DECL2", "S_DONE", "S_EMPTYTAG", "S_ENT", "S_EQ", "S_ETAG", "S_GI", "S_NCR", "S_PCDATA", "S_PI", "S_PITARGET", "S_QUOT", "S_STAGC", "S_TAG", "S_TAGWS", "S_XNCR" }; @@ -268,7 +268,7 @@ namespace TagSoup 0xFFFD, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x02DC, 0x2122, 0x0161, 0x203A, 0x0153, 0xFFFD, 0x017E, 0x0178}; - ///<summary> + /// <summary> /// Index into the state table for [state][input character - 2]. /// The state table consists of 4-entry runs on the form /// { current state, input character, action, next state }. @@ -280,10 +280,12 @@ namespace TagSoup /// An input character of -2 is used to cover all other characters /// as -2 is guaranteed not to match any input character entry /// in the state table. - /// <para>When doing lookups, the input character should first be tested + /// <para/> + /// When doing lookups, the input character should first be tested /// to be in the range [-1 (inclusive), statetableIndexMaxChar (exclusive)]. /// if it isn't use -2 as the input character. - /// <para>Finally, add 2 to the input character to cover for the fact that + /// <para/> + /// Finally, add 2 to the input character to cover for the fact that /// Java doesn't support negative array indexes. Then look up /// the value in the statetableIndex. If the value is -1, then /// no action or next state was found for the { state, input } that @@ -293,7 +295,7 @@ namespace TagSoup /// </summary> static short[][] statetableIndex; - ///<summary> + /// <summary> /// The highest character value seen in the statetable. /// See the doc comment for statetableIndex to see how this /// is used. http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5594d5bb/src/Lucene.Net.Benchmark/Support/TagSoup/Parser.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Benchmark/Support/TagSoup/Parser.cs b/src/Lucene.Net.Benchmark/Support/TagSoup/Parser.cs index e353b85..f18990f 100644 --- a/src/Lucene.Net.Benchmark/Support/TagSoup/Parser.cs +++ b/src/Lucene.Net.Benchmark/Support/TagSoup/Parser.cs @@ -117,7 +117,7 @@ namespace TagSoup /// Has a value of "true" if all XML names (for elements, /// prefixes, attributes, entities, notations, and local /// names), as well as Namespace URIs, will have been interned - /// using <see cref="string.Intern" />. This supports fast testing of + /// using <see cref="StringExtensions.Intern(string)" />. This supports fast testing of /// equality/inequality against string constants, rather than forcing /// slower calls to <see cref="string.Equals(object)" />. (We always intern.) /// </summary> @@ -126,19 +126,19 @@ namespace TagSoup /// <summary> /// Returns "true" if the Attributes objects passed by this /// parser in <see cref="IContentHandler.StartElement" /> implement the - /// <see cref="Sax.Net.Ext.IAttributes2" /> interface. (They don't.) + /// <see cref="Sax.Ext.IAttributes2" /> interface. (They don't.) /// </summary> public const string USE_ATTRIBUTES2_FEATURE = "http://xml.org/sax/features/use-attributes2"; /// <summary> /// Returns "true" if the Locator objects passed by this parser /// parser in <see cref="IContentHandler.SetDocumentLocator" /> implement the - /// <see cref="Sax.Net.Ext.ILocator2" /> interface. (They don't.) + /// <see cref="Sax.Ext.ILocator2" /> interface. (They don't.) /// </summary> public const string USE_LOCATOR2_FEATURE = "http://xml.org/sax/features/use-locator2"; /// <summary> /// Returns "true" if, when setEntityResolver is given an object - /// implementing the <see cref="Sax.Net.Ext.IEntityResolver2" /> interface, + /// implementing the <see cref="Sax.Ext.IEntityResolver2" /> interface, /// those new methods will be used. (They won't be.) /// </summary> public const string USE_ENTITY_RESOLVER2_FEATURE = "http://xml.org/sax/features/use-entity-resolver2";
