Udostępnij za pośrednictwem


AbstractStringBuilder.OffsetByCodePoints(Int32, Int32) Method

Definition

Returns the index within this sequence that is offset from the given index by codePointOffset code points.

[Android.Runtime.Register("offsetByCodePoints", "(II)I", "GetOffsetByCodePoints_IIHandler")]
public virtual int OffsetByCodePoints (int index, int codePointOffset);
[<Android.Runtime.Register("offsetByCodePoints", "(II)I", "GetOffsetByCodePoints_IIHandler")>]
abstract member OffsetByCodePoints : int * int -> int
override this.OffsetByCodePoints : int * int -> int

Parameters

index
Int32

the index to be offset

codePointOffset
Int32

the offset in code points

Returns

the index within this sequence

Attributes

Remarks

Returns the index within this sequence that is offset from the given index by codePointOffset code points. Unpaired surrogates within the text range given by index and codePointOffset count as one code point each.

Java documentation for java.lang.AbstractStringBuilder.offsetByCodePoints(int, 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.

Applies to