Android Guides | Samples

Java.Lang.String.CodePointCount Method

Calculates the number of Unicode code points between start and end.

Syntax

[Android.Runtime.Register("codePointCount", "(II)I", "")]
public Int32 CodePointCount (Int32 beginIndex, Int32 endIndex)

See Also

Parameters

start
the inclusive beginning index of the subsequence.
end
the exclusive end index of the subsequence.

Exceptions

TypeReason
IndexOutOfBoundsExceptionif start length() || start > end

Remarks

Calculates the number of Unicode code points between start and end.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1