Normalizer2.SpanQuickCheckYes 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
SpanQuickCheckYes(ICharSequence) |
Returns the end of the normalized substring of the input string. |
SpanQuickCheckYes(String) |
Returns the end of the normalized substring of the input string. |
SpanQuickCheckYes(ICharSequence)
Returns the end of the normalized substring of the input string.
[Android.Runtime.Register("spanQuickCheckYes", "(Ljava/lang/CharSequence;)I", "GetSpanQuickCheckYes_Ljava_lang_CharSequence_Handler", ApiSince=24)]
public abstract int SpanQuickCheckYes (Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("spanQuickCheckYes", "(Ljava/lang/CharSequence;)I", "GetSpanQuickCheckYes_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
abstract member SpanQuickCheckYes : Java.Lang.ICharSequence -> int
Parameters
input string
Returns
"yes" span end index
- Attributes
Remarks
Returns the end of the normalized substring of the input string. In other words, with end=spanQuickCheckYes(s);
the substring s.subSequence(0, end)
will pass the quick check with a "yes" result.
The returned end index is usually one or more characters before the "no" or "maybe" character: The end index is at a normalization boundary. (See the class documentation for more about normalization boundaries.)
When the goal is a normalized string and most input strings are expected to be normalized already, then call this method, and if it returns a prefix shorter than the input string, copy that prefix and use normalizeSecondAndAppend() for the remainder.
Java documentation for android.icu.text.Normalizer2.spanQuickCheckYes(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
SpanQuickCheckYes(String)
Returns the end of the normalized substring of the input string.
public int SpanQuickCheckYes (string? s);
member this.SpanQuickCheckYes : string -> int
Parameters
- s
- String
input string
Returns
"yes" span end index
Remarks
Returns the end of the normalized substring of the input string. In other words, with end=spanQuickCheckYes(s);
the substring s.subSequence(0, end)
will pass the quick check with a "yes" result.
The returned end index is usually one or more characters before the "no" or "maybe" character: The end index is at a normalization boundary. (See the class documentation for more about normalization boundaries.)
When the goal is a normalized string and most input strings are expected to be normalized already, then call this method, and if it returns a prefix shorter than the input string, copy that prefix and use normalizeSecondAndAppend() for the remainder.
Java documentation for android.icu.text.Normalizer2.spanQuickCheckYes(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.