Class UnescapedCharSequence
ICharSequence with escaped chars information.
Inheritance
System.Object
UnescapedCharSequence
Implements
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 ICharSequence
Declaration
public UnescapedCharSequence(ICharSequence text)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | text |
UnescapedCharSequence(Char[], Boolean[], Int32, Int32)
Create a escaped 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 start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | |
System.Int32 | end |
Returns
Type | Description |
---|---|
ICharSequence |
ToLower(ICharSequence, CultureInfo)
Declaration
public static ICharSequence ToLower(ICharSequence text, CultureInfo locale)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | text | |
System.Globalization.CultureInfo | locale |
Returns
Type | Description |
---|---|
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 |
---|---|
ICharSequence | an escaped System.String |
WasEscaped(ICharSequence, Int32)
Declaration
public static bool WasEscaped(ICharSequence text, int index)
Parameters
Type | Name | Description |
---|---|---|
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 |