Share via


UnicodeSetSpanner.CountIn Method

Definition

Overloads

CountIn(ICharSequence)

Returns the number of matching characters found in a character sequence, counting by CountMethod.

CountIn(String)

Returns the number of matching characters found in a character sequence, counting by CountMethod.

CountIn(ICharSequence, UnicodeSetSpanner+CountMethod)
CountIn(String, UnicodeSetSpanner+CountMethod)
CountIn(ICharSequence, UnicodeSetSpanner+CountMethod, UnicodeSet+SpanCondition)
CountIn(String, UnicodeSetSpanner+CountMethod, UnicodeSet+SpanCondition)

CountIn(ICharSequence)

Returns the number of matching characters found in a character sequence, counting by CountMethod.

[Android.Runtime.Register("countIn", "(Ljava/lang/CharSequence;)I", "GetCountIn_Ljava_lang_CharSequence_Handler", ApiSince=24)]
public virtual int CountIn (Java.Lang.ICharSequence? sequence);
[<Android.Runtime.Register("countIn", "(Ljava/lang/CharSequence;)I", "GetCountIn_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
abstract member CountIn : Java.Lang.ICharSequence -> int
override this.CountIn : Java.Lang.ICharSequence -> int

Parameters

sequence
ICharSequence

the sequence to count characters in

Returns

the count. Zero if there are none.

Attributes

Remarks

Returns the number of matching characters found in a character sequence, counting by CountMethod.MIN_ELEMENTS using SpanCondition.SIMPLE. The code alternates spans; see the class doc for UnicodeSetSpanner for a note about boundary conditions.

Java documentation for android.icu.text.UnicodeSetSpanner.countIn(java.lang.CharSequence).

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

CountIn(String)

Returns the number of matching characters found in a character sequence, counting by CountMethod.

public int CountIn (string? sequence);
member this.CountIn : string -> int

Parameters

sequence
String

the sequence to count characters in

Returns

the count. Zero if there are none.

Remarks

Returns the number of matching characters found in a character sequence, counting by CountMethod.MIN_ELEMENTS using SpanCondition.SIMPLE. The code alternates spans; see the class doc for UnicodeSetSpanner for a note about boundary conditions.

Java documentation for android.icu.text.UnicodeSetSpanner.countIn(java.lang.CharSequence).

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

CountIn(ICharSequence, UnicodeSetSpanner+CountMethod)

[Android.Runtime.Register("countIn", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$CountMethod;)I", "GetCountIn_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_CountMethod_Handler", ApiSince=24)]
public virtual int CountIn (Java.Lang.ICharSequence? sequence, Android.Icu.Text.UnicodeSetSpanner.CountMethod? countMethod);
[<Android.Runtime.Register("countIn", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$CountMethod;)I", "GetCountIn_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_CountMethod_Handler", ApiSince=24)>]
abstract member CountIn : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.CountMethod -> int
override this.CountIn : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.CountMethod -> int

Parameters

sequence
ICharSequence

Returns

Attributes

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

CountIn(String, UnicodeSetSpanner+CountMethod)

public int CountIn (string? sequence, Android.Icu.Text.UnicodeSetSpanner.CountMethod? countMethod);
member this.CountIn : string * Android.Icu.Text.UnicodeSetSpanner.CountMethod -> int

Parameters

sequence
String

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

CountIn(ICharSequence, UnicodeSetSpanner+CountMethod, UnicodeSet+SpanCondition)

[Android.Runtime.Register("countIn", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$CountMethod;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetCountIn_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_CountMethod_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int CountIn (Java.Lang.ICharSequence? sequence, Android.Icu.Text.UnicodeSetSpanner.CountMethod? countMethod, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("countIn", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$CountMethod;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetCountIn_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_CountMethod_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member CountIn : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.CountMethod * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.CountIn : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.CountMethod * Android.Icu.Text.UnicodeSet.SpanCondition -> int

Parameters

sequence
ICharSequence
spanCondition
UnicodeSet.SpanCondition

Returns

Attributes

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

CountIn(String, UnicodeSetSpanner+CountMethod, UnicodeSet+SpanCondition)

public int CountIn (string? sequence, Android.Icu.Text.UnicodeSetSpanner.CountMethod? countMethod, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.CountIn : string * Android.Icu.Text.UnicodeSetSpanner.CountMethod * Android.Icu.Text.UnicodeSet.SpanCondition -> int

Parameters

sequence
String
spanCondition
UnicodeSet.SpanCondition

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