Character.CodePointCount Character.CodePointCount Method

Definition

Overloads

CodePointCount(ICharSequence, Int32, Int32) CodePointCount(ICharSequence, Int32, Int32)

Counts the number of Unicode code points in the subsequence of the specified character sequence, as delineated by beginIndex and endIndex.

CodePointCount(Char[], Int32, Int32) CodePointCount(Char[], Int32, Int32)

Counts the number of Unicode code points in the subsequence of the specified char array, as delineated by offset and count.

CodePointCount(String, Int32, Int32) CodePointCount(String, Int32, Int32)

CodePointCount(ICharSequence, Int32, Int32) CodePointCount(ICharSequence, Int32, Int32)

Counts the number of Unicode code points in the subsequence of the specified character sequence, as delineated by beginIndex and endIndex.

[Android.Runtime.Register("codePointCount", "(Ljava/lang/CharSequence;II)I", "")]
public static int CodePointCount (Java.Lang.ICharSequence seq, int beginIndex, int endIndex);
static member CodePointCount : Java.Lang.ICharSequence * int * int -> int

Parameters

seq
ICharSequence ICharSequence

the CharSequence to look through.

beginIndex
Int32 Int32

the inclusive index to begin counting at.

endIndex
Int32 Int32

the exclusive index to stop counting at.

Returns

Exceptions

if beginIndex , beginIndex > endIndex or if endIndex is greater than the length of seq.

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.

CodePointCount(Char[], Int32, Int32) CodePointCount(Char[], Int32, Int32)

Counts the number of Unicode code points in the subsequence of the specified char array, as delineated by offset and count.

[Android.Runtime.Register("codePointCount", "([CII)I", "")]
public static int CodePointCount (char[] a, int offset, int count);
static member CodePointCount : char[] * int * int -> int

Parameters

a
Char[]
offset
Int32 Int32

the inclusive index to begin counting at.

count
Int32 Int32

the number of char values to look through in seq.

Returns

Exceptions

if offset , count or if offset + count is greater than the length of seq.

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.

CodePointCount(String, Int32, Int32) CodePointCount(String, Int32, Int32)

public static int CodePointCount (string seq, int beginIndex, int endIndex);
static member CodePointCount : string * int * int -> int

Parameters

beginIndex
Int32 Int32
endIndex
Int32 Int32

Returns

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