UnicodeSetSpanner.CountIn Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |
Counts selected set elements or spans using simple spanning. |
| CountIn(ICharSequence, UnicodeSetSpanner+CountMethod, UnicodeSet+SpanCondition) |
Returns the number of matching characters found in a character sequence. |
| CountIn(String, UnicodeSetSpanner+CountMethod, UnicodeSet+SpanCondition) |
Counts set elements or spans selected by the supplied spanning condition. |
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)
Counts selected set elements or spans using simple spanning.
public int CountIn(string? sequence, Android.Icu.Text.UnicodeSetSpanner.CountMethod? countMethod);
member this.CountIn : string * Android.Icu.Text.UnicodeSetSpanner.CountMethod -> int
Parameters
- sequence
- String
The managed string whose selected set elements are counted.
- countMethod
- UnicodeSetSpanner.CountMethod
Selects one count per complete span or the minimum element count within each span.
Returns
The count selected by countMethod, or zero when no matching span is found.
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)
Counts set elements or spans selected by the supplied spanning condition.
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
The managed string whose selected set elements are counted.
- countMethod
- UnicodeSetSpanner.CountMethod
Selects one count per complete span or the minimum element count within each span.
- spanCondition
- UnicodeSet.SpanCondition
Selects the spans to count, including noncontained spans when NotContained is used.
Returns
The count selected by the counting method and spanning condition.
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.