Method CodePointAt
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.
Declaration
public static int CodePointAt(this StringBuilder text, int index)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | text | this |
System.Int32 | index | the index to the char values |
Returns
Type | Description |
---|---|
System.Int32 | the code point value of the character at the index |