Method Append
Append(ICharSequence)
Appends the contents of the ICharSequence to this character sequence.
The characters of the ICharSequence argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(ICharSequence csq)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | csq |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Append(ICharSequence, Int32, Int32)
Appends the contents of the ICharSequence to this character sequence, beginning and ending at the specified indices.
The characters of the ICharSequence argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(ICharSequence csq, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | csq | The index of the first character in the subsequence. |
System.Int32 | start | The start index of the ICharSequence to begin copying characters. |
System.Int32 | end | The index of the character following the last character in the subsequence. |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Append(Char)
Appends the supplied
Declaration
ICharTermAttribute Append(char c)
Parameters
Type | Name | Description |
---|---|---|
System.Char | c | The |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Append(Char[])
Appends the contents of the char[] array to this character sequence.
The characters of the char[] argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(char[] csq)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | csq | The char[] array to append. |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Remarks
LUCENENET specific method, added to simulate using the CharBuffer class in Java.
Append(Char[], Int32, Int32)
Appends the contents of the char[] array to this character sequence, beginning and ending at the specified indices.
The characters of the char[] argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(char[] csq, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | csq | The char[] array to append. |
System.Int32 | start | The start index of the char[] to begin copying characters. |
System.Int32 | end | The index of the character following the last character in the subsequence. |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Remarks
LUCENENET specific method, added to simulate using the CharBuffer class in Java. Note that the CopyBuffer(Char[], Int32, Int32) method provides similar functionality, except for the last argument of this method is an index of the array rather than the length of characters to copy.
Append(String)
Appends the specified
The characters of the null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Remarks
LUCENENET specific method, added because the .NET
Append(String, Int32, Int32)
Appends the contents of the
The characters of the null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(string csq, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.String | csq | The index of the first character in the subsequence. |
System.Int32 | start | The start index of the |
System.Int32 | end | The index of the character following the last character in the subsequence. |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Remarks
LUCENENET specific method, added because the .NET
Append(StringBuilder)
Appends the specified
The characters of the null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(StringBuilder sb)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | sb |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Append(StringBuilder, Int32, Int32)
Appends the specified
The characters of the null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(StringBuilder s, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | s | |
System.Int32 | start | |
System.Int32 | end |
Returns
Type | Description |
---|---|
ICharTermAttribute |
Remarks
LUCENENET specific method, added because the .NET
Append(ICharTermAttribute)
Appends the contents of the other ICharTermAttribute to this character sequence.
The characters of the ICharTermAttribute argument are appended, in order, increasing the length of
this sequence by the length of the argument. If argument is null
, then the four
characters "null"
are appended.
Declaration
ICharTermAttribute Append(ICharTermAttribute termAtt)
Parameters
Type | Name | Description |
---|---|---|
ICharTermAttribute | termAtt |
Returns
Type | Description |
---|---|
ICharTermAttribute |