Lingua

UnicodeSetSpanner.CountIn Method

Definition

Overloads

Name Description
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)

Returns the number of matching characters found in a character sequence, using SpanCondition.SIMPLE.

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

Returns the number of matching characters found in a character sequence.

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)

Returns the number of matching characters found in a character sequence, using SpanCondition.SIMPLE.

[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

the sequence to count characters in

countMethod
UnicodeSetSpanner.CountMethod

whether to treat an entire span as a match, or individual elements as matches

Returns

the count. Zero if there are none.

Attributes

Remarks

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

Android reference for android.icu.text.UnicodeSetSpanner.countIn.

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)

Returns the number of matching characters found in a character sequence.

[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

the sequence to count characters in

countMethod
UnicodeSetSpanner.CountMethod

whether to treat an entire span as a match, or individual elements as matches

spanCondition
UnicodeSet.SpanCondition

the spanCondition to use. SIMPLE or CONTAINED means only count the elements in the span; NOT_CONTAINED is the reverse. WARNING: when a UnicodeSet contains strings, there may be unexpected behavior in edge cases.

Returns

the count. Zero if there are none.

Attributes

Remarks

Returns the number of matching characters found in a character sequence. The code alternates spans; see the class doc for UnicodeSetSpanner for a note about boundary conditions.

Android reference for android.icu.text.UnicodeSetSpanner.countIn.

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