Class StringBuilderExtensions
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public static class StringBuilderExtensions : object
Methods
Name | Description |
---|---|
AppendCodePoint(StringBuilder, Int32) | Appends the string representation of the The argument is appended to the contents of this sequence. The length of this sequence increases by CharCount(Int32).
The overall effect is exactly as if the argument were
converted to a |
CodePointAt(StringBuilder, Int32) | Returns the character (Unicode code point) at the specified index. The index refers to char values (Unicode code units) and ranges from 0 to Length - 1. If the char value specified at the given index is in the high-surrogate range, the following index is less than the length of this sequence, and the char value at the following index is in the low-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at the given index is returned. |
CodePointCount(StringBuilder, Int32, Int32) | Returns the number of Unicode code points in the specified text
range of this |
GetChars(StringBuilder) | Copies the array from the |
IndexOf(StringBuilder, String) | Searches for the first index of the specified character. The search for the character starts at the beginning and moves towards the end. |
IndexOf(StringBuilder, String, Int32) | Searches for the index of the specified character. The search for the character starts at the specified offset and moves towards the end. |
Reverse(StringBuilder) | Causes this character sequence to be replaced by the reverse of the sequence. If there are any surrogate pairs included in the sequence, these are treated as single characters for the reverse operation. Thus, the order of the high-low surrogates is never reversed.
Let Note that the reverse operation may result in producing surrogate pairs that were unpaired low-surrogates and high-surrogates before the operation. For example, reversing "\uDC00\uD800" produces "\uD800\uDC00" which is a valid surrogate pair. |
ToCharSequence(StringBuilder) | Convenience method to wrap a string in a StringBuilderCharSequenceWrapper
so a |