You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/02/03 21:06:41 UTC

[6/8] lucenenet git commit: Lucene.Net.Analysis.Reverse refactor: member accessibility and documentation comments

Lucene.Net.Analysis.Reverse refactor: member accessibility and documentation comments


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/2c92de4e
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/2c92de4e
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/2c92de4e

Branch: refs/heads/api-work
Commit: 2c92de4e2678b765d4e14327b3436b901e9685ea
Parents: bb9de83
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sat Feb 4 03:46:33 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sat Feb 4 03:46:33 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Reverse/ReverseStringFilter.cs     | 36 ++++++++++----------
 .../Reverse/ReverseStringFilterFactory.cs       |  3 +-
 2 files changed, 19 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2c92de4e/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilter.cs
index 117be89..4b48902 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilter.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilter.cs
@@ -24,23 +24,21 @@ namespace Lucene.Net.Analysis.Reverse
     /// <summary>
     /// Reverse token string, for example "country" => "yrtnuoc".
     /// <para>
-    /// If <code>marker</code> is supplied, then tokens will be also prepended by
+    /// If <see cref="marker"/> is supplied, then tokens will be also prepended by
     /// that character. For example, with a marker of &#x5C;u0001, "country" =>
     /// "&#x5C;u0001yrtnuoc". This is useful when implementing efficient leading
     /// wildcards search.
     /// </para>
-    /// <a name="version"/>
     /// <para>You must specify the required <see cref="LuceneVersion"/>
-    /// compatibility when creating ReverseStringFilter, or when using any of
+    /// compatibility when creating <see cref="ReverseStringFilter"/>, or when using any of
     /// its static methods:
-    /// <ul>
-    ///   <li> As of 3.1, supplementary characters are handled correctly
-    /// </ul>
+    /// <list type="bullet">
+    ///     <item> As of 3.1, supplementary characters are handled correctly</item>
+    /// </list>
     /// </para>
     /// </summary>
     public sealed class ReverseStringFilter : TokenFilter
     {
-
         private readonly ICharTermAttribute termAtt;
         private readonly char marker;
         private readonly LuceneVersion matchVersion;
@@ -67,30 +65,32 @@ namespace Lucene.Net.Analysis.Reverse
         public const char RTL_DIRECTION_MARKER = '\u200F';
 
         /// <summary>
-        /// Create a new ReverseStringFilter that reverses all tokens in the 
+        /// Create a new <see cref="ReverseStringFilter"/> that reverses all tokens in the 
         /// supplied <see cref="TokenStream"/>.
         /// <para>
         /// The reversed tokens will not be marked. 
         /// </para>
         /// </summary>
-        /// <param name="matchVersion"> See <a href="#version">above</a> </param>
+        /// <param name="matchVersion"> lucene compatibility version </param>
         /// <param name="in"> <see cref="TokenStream"/> to filter </param>
-        public ReverseStringFilter(LuceneVersion matchVersion, TokenStream @in) : this(matchVersion, @in, NOMARKER)
+        public ReverseStringFilter(LuceneVersion matchVersion, TokenStream @in) 
+            : this(matchVersion, @in, NOMARKER)
         {
         }
 
         /// <summary>
-        /// Create a new ReverseStringFilter that reverses and marks all tokens in the
+        /// Create a new <see cref="ReverseStringFilter"/> that reverses and marks all tokens in the
         /// supplied <see cref="TokenStream"/>.
         /// <para>
-        /// The reversed tokens will be prepended (marked) by the <code>marker</code>
+        /// The reversed tokens will be prepended (marked) by the <paramref name="marker"/>
         /// character.
         /// </para>
         /// </summary>
-        /// <param name="matchVersion"> See <a href="#version">above</a> </param>
+        /// <param name="matchVersion"> lucene compatibility version </param>
         /// <param name="in"> <see cref="TokenStream"/> to filter </param>
         /// <param name="marker"> A character used to mark reversed tokens </param>
-        public ReverseStringFilter(LuceneVersion matchVersion, TokenStream @in, char marker) : base(@in)
+        public ReverseStringFilter(LuceneVersion matchVersion, TokenStream @in, char marker) 
+            : base(@in)
         {
             this.matchVersion = matchVersion;
             this.marker = marker;
@@ -121,7 +121,7 @@ namespace Lucene.Net.Analysis.Reverse
         /// <summary>
         /// Reverses the given input string
         /// </summary>
-        /// <param name="matchVersion"> See <a href="#version">above</a> </param>
+        /// <param name="matchVersion"> lucene compatibility version </param>
         /// <param name="input"> the string to reverse </param>
         /// <returns> the given input string in reversed order </returns>
         public static string Reverse(LuceneVersion matchVersion, string input)
@@ -133,7 +133,7 @@ namespace Lucene.Net.Analysis.Reverse
 
         /// <summary>
         /// Reverses the given input buffer in-place </summary>
-        /// <param name="matchVersion"> See <a href="#version">above</a> </param>
+        /// <param name="matchVersion"> lucene compatibility version </param>
         /// <param name="buffer"> the input char array to reverse </param>
         public static void Reverse(LuceneVersion matchVersion, char[] buffer)
         {
@@ -143,7 +143,7 @@ namespace Lucene.Net.Analysis.Reverse
         /// <summary>
         /// Partially reverses the given input buffer in-place from offset 0
         /// up to the given length. </summary>
-        /// <param name="matchVersion"> See <a href="#version">above</a> </param>
+        /// <param name="matchVersion"> lucene compatibility version </param>
         /// <param name="buffer"> the input char array to reverse </param>
         /// <param name="len"> the length in the buffer up to where the
         ///        buffer should be reversed </param>
@@ -172,7 +172,7 @@ namespace Lucene.Net.Analysis.Reverse
         /// <summary>
         /// Partially reverses the given input buffer in-place from the given offset
         /// up to the given length. </summary>
-        /// <param name="matchVersion"> See <a href="#version">above</a> </param>
+        /// <param name="matchVersion"> lucene compatibility version </param>
         /// <param name="buffer"> the input char array to reverse </param>
         /// <param name="start"> the offset from where to reverse the buffer </param>
         /// <param name="len"> the length in the buffer up to where the

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2c92de4e/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilterFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilterFactory.cs b/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilterFactory.cs
index ee3ce61..a07ce23 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilterFactory.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Reverse/ReverseStringFilterFactory.cs
@@ -34,9 +34,8 @@ namespace Lucene.Net.Analysis.Reverse
     /// </summary>
     public class ReverseStringFilterFactory : TokenFilterFactory
     {
-
         /// <summary>
-        /// Creates a new ReverseStringFilterFactory </summary>
+        /// Creates a new <see cref="ReverseStringFilterFactory"/> </summary>
         public ReverseStringFilterFactory(IDictionary<string, string> args) : base(args)
         {
             AssureMatchVersion();