String.OffsetByCodePoints(Int32, Int32) String.OffsetByCodePoints(Int32, Int32) Method

Definition

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

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

Parameters

index
Int32 Int32

the index within this object to calculate the offset from.

codePointOffset
Int32 Int32

the number of code points to count.

Returns

Exceptions

if index is negative or greater than length() or if there aren't enough code points before or after index to match codePointOffset.

Remarks

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