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/10/20 10:55:29 UTC
[02/10] lucenenet git commit: BREAKING: Lucene.Net.Support: Removed
CharAt() method from StringCharSequenceWrapper.
BREAKING: Lucene.Net.Support: Removed CharAt() method from StringCharSequenceWrapper.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a343b983
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a343b983
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a343b983
Branch: refs/heads/master
Commit: a343b9832fb2807fb680b9717d111041ec951e9c
Parents: be7fb88
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Oct 19 22:22:33 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Thu Oct 19 23:16:54 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net/Support/StringCharSequenceWrapper.cs | 12 ++++++++----
src/Lucene.Net/Support/StringExtensions.cs | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a343b983/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/StringCharSequenceWrapper.cs b/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
index 3e95d55..d490f6a 100644
--- a/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
+++ b/src/Lucene.Net/Support/StringCharSequenceWrapper.cs
@@ -19,6 +19,9 @@ namespace Lucene.Net.Support
* limitations under the License.
*/
+ /// <summary>
+ /// An adapter for <see cref="string"/> that implements <see cref="ICharSequence"/>
+ /// </summary>
public class StringCharSequenceWrapper : ICharSequence
{
public static readonly StringCharSequenceWrapper Empty = new StringCharSequenceWrapper(string.Empty);
@@ -35,10 +38,11 @@ namespace Lucene.Net.Support
get { return value.Length; }
}
- public char CharAt(int index)
- {
- return value[index];
- }
+ // LUCENENET specific - removed
+ //public char CharAt(int index)
+ //{
+ // return value[index];
+ //}
// LUCENENET specific - added to .NETify
public char this[int index]
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a343b983/src/Lucene.Net/Support/StringExtensions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Support/StringExtensions.cs b/src/Lucene.Net/Support/StringExtensions.cs
index 8f99970..c4cc7da 100644
--- a/src/Lucene.Net/Support/StringExtensions.cs
+++ b/src/Lucene.Net/Support/StringExtensions.cs
@@ -97,7 +97,7 @@ namespace Lucene.Net.Support
/// <summary>
/// Convenience method to wrap a string in a <see cref="StringCharSequenceWrapper"/>
- /// so a string can be used as <see cref="ICharSequence"/> in .NET.
+ /// so a <see cref="string"/> can be used as <see cref="ICharSequence"/> in .NET.
/// </summary>
public static ICharSequence ToCharSequence(this string str)
{