AbstractStringBuilder.CodePointBefore(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the character (Unicode code point) before the specified index.
[Android.Runtime.Register("codePointBefore", "(I)I", "GetCodePointBefore_IHandler")]
public virtual int CodePointBefore (int index);
[<Android.Runtime.Register("codePointBefore", "(I)I", "GetCodePointBefore_IHandler")>]
abstract member CodePointBefore : int -> int
override this.CodePointBefore : int -> int
Parameters
- index
- Int32
the index following the code point that should be returned
Returns
the Unicode code point value before the given index.
- Attributes
Remarks
Returns the character (Unicode code point) before the specified index. The index refers to char
values (Unicode code units) and ranges from 1
to #length()
.
If the char
value at (index - 1)
is in the low-surrogate range, (index - 2)
is not negative, and the char
value at (index - 2)
is in the high-surrogate range, then the supplementary code point value of the surrogate pair is returned. If the char
value at index - 1
is an unpaired low-surrogate or a high-surrogate, the surrogate value is returned.
Java documentation for java.lang.AbstractStringBuilder.codePointBefore(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.