Class UnescapedCharSequence
J2N.Text.ICharSequence with escaped chars information.
Inheritance
System.Object
UnescapedCharSequence
Implements
J2N.Text.ICharSequence
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.QueryParsers.Flexible.Core.Util
Assembly: Lucene.Net.QueryParser.dll
Syntax
public sealed class UnescapedCharSequence : ICharSequence
Constructors
| Improve this Doc View SourceUnescapedCharSequence(ICharSequence)
Create a non-escaped J2N.Text.ICharSequence
Declaration
public UnescapedCharSequence(ICharSequence text)
Parameters
Type | Name | Description |
---|---|---|
J2N.Text.ICharSequence | text |
UnescapedCharSequence(Char[], Boolean[], Int32, Int32)
Create a escaped J2N.Text.ICharSequence
Declaration
public UnescapedCharSequence(char[] chars, bool[] wasEscaped, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | chars | |
System.Boolean[] | wasEscaped | |
System.Int32 | offset | |
System.Int32 | length |
UnescapedCharSequence(String)
Create a non-escaped System.String
Declaration
public UnescapedCharSequence(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
UnescapedCharSequence(StringBuilder)
Create a non-escaped System.Text.StringBuilder
Declaration
public UnescapedCharSequence(StringBuilder text)
Parameters
Type | Name | Description |
---|---|---|
System.Text.StringBuilder | text |
Properties
| Improve this Doc View SourceItem[Int32]
Declaration
public char this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
System.Char |
Length
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSubsequence(Int32, Int32)
Declaration
public ICharSequence Subsequence(int startIndex, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | |
System.Int32 | length |
Returns
Type | Description |
---|---|
J2N.Text.ICharSequence |
ToLower(ICharSequence, CultureInfo)
Declaration
public static ICharSequence ToLower(ICharSequence text, CultureInfo locale)
Parameters
Type | Name | Description |
---|---|---|
J2N.Text.ICharSequence | text | |
System.Globalization.CultureInfo | locale |
Returns
Type | Description |
---|---|
J2N.Text.ICharSequence |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
ToStringEscaped()
Return an escaped System.String
Declaration
public string ToStringEscaped()
Returns
Type | Description |
---|---|
System.String | an escaped System.String |
ToStringEscaped(Char[])
Return an escaped System.String
Declaration
public ICharSequence ToStringEscaped(char[] enabledChars)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | enabledChars | array of chars to be escaped |
Returns
Type | Description |
---|---|
J2N.Text.ICharSequence | an escaped System.String |
WasEscaped(ICharSequence, Int32)
Declaration
public static bool WasEscaped(ICharSequence text, int index)
Parameters
Type | Name | Description |
---|---|---|
J2N.Text.ICharSequence | text | |
System.Int32 | index |
Returns
Type | Description |
---|---|
System.Boolean |
WasEscaped(Int32)
Declaration
public bool WasEscaped(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.Boolean |
Explicit Interface Implementations
| Improve this Doc View SourceICharSequence.HasValue
Declaration
bool ICharSequence.HasValue { get; }
Returns
Type | Description |
---|---|
System.Boolean |
Implements
J2N.Text.ICharSequence