This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit bed4c2c633d4b39341104bdb66fdbdeb9612476e Author: Michael <[email protected]> AuthorDate: Mon Mar 30 15:49:27 2020 +0700 renamed start/end to startIndex/length Related Work Items: #2 --- .../Analysis/Util/OpenStringBuilder.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Util/OpenStringBuilder.cs b/src/Lucene.Net.Analysis.Common/Analysis/Util/OpenStringBuilder.cs index 164b229..0f41a0f 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Util/OpenStringBuilder.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Util/OpenStringBuilder.cs @@ -78,10 +78,10 @@ namespace Lucene.Net.Analysis.Util return Append(csq, 0, csq.Length); } - public virtual OpenStringBuilder Append(ICharSequence csq, int start, int end) // LUCENENET TODO: API - change to startIndex/length to match .NET + public virtual OpenStringBuilder Append(ICharSequence csq, int startIndex, int length) // LUCENENET TODO: API - change to startIndex/length to match .NET { - EnsureCapacity(end - start); - for (int i = start; i < end; i++) + EnsureCapacity(length - startIndex); + for (int i = startIndex; i < length; i++) { UnsafeWrite(csq[i]); } @@ -95,10 +95,10 @@ namespace Lucene.Net.Analysis.Util } // LUCENENET specific - overload for string (more common in .NET than ICharSequence) - public virtual OpenStringBuilder Append(string csq, int start, int end) // LUCENENET TODO: API - change to startIndex/length to match .NET + public virtual OpenStringBuilder Append(string csq, int startIndex, int length) // LUCENENET TODO: API - change to startIndex/length to match .NET { - EnsureCapacity(end - start); - for (int i = start; i < end; i++) + EnsureCapacity(length - startIndex); + for (int i = startIndex; i < length; i++) { UnsafeWrite(csq[i]); } @@ -112,10 +112,10 @@ namespace Lucene.Net.Analysis.Util } // LUCENENET specific - overload for StringBuilder - public virtual OpenStringBuilder Append(StringBuilder csq, int start, int end) // LUCENENET TODO: API - change to startIndex/length to match .NET + public virtual OpenStringBuilder Append(StringBuilder csq, int startIndex, int length) // LUCENENET TODO: API - change to startIndex/length to match .NET { - EnsureCapacity(end - start); - for (int i = start; i < end; i++) + EnsureCapacity(length - startIndex); + for (int i = startIndex; i < length; i++) { UnsafeWrite(csq[i]); }
