Sdílet prostřednictvím


StringSearch Constructors

Definition

Overloads

StringSearch(String, String)

Initializes the iterator to use the language-specific rules and break iterator rules defined in the default locale to search for argument pattern in the argument target text.

StringSearch(String, ICharacterIterator, RuleBasedCollator)

Initializes the iterator to use the language-specific rules defined in the argument collator to search for argument pattern in the argument target text.

StringSearch(String, ICharacterIterator, ULocale)

Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text.

StringSearch(String, ICharacterIterator, Locale)

Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text.

StringSearch(String, ICharacterIterator, RuleBasedCollator, BreakIterator)

Initializes the iterator to use the language-specific rules defined in the argument collator to search for argument pattern in the argument target text.

StringSearch(String, String)

Initializes the iterator to use the language-specific rules and break iterator rules defined in the default locale to search for argument pattern in the argument target text.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=24)]
public StringSearch (string? pattern, string? target);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.StringSearch : string * string -> Android.Icu.Text.StringSearch

Parameters

pattern
String

text to look for.

target
String

target text to search for pattern.

Attributes

Remarks

Initializes the iterator to use the language-specific rules and break iterator rules defined in the default locale to search for argument pattern in the argument target text.

Java documentation for android.icu.text.StringSearch.StringSearch(java.lang.String, java.lang.String).

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

StringSearch(String, ICharacterIterator, RuleBasedCollator)

Initializes the iterator to use the language-specific rules defined in the argument collator to search for argument pattern in the argument target text.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Landroid/icu/text/RuleBasedCollator;)V", "", ApiSince=24)]
public StringSearch (string? pattern, Java.Text.ICharacterIterator? target, Android.Icu.Text.RuleBasedCollator? collator);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Landroid/icu/text/RuleBasedCollator;)V", "", ApiSince=24)>]
new Android.Icu.Text.StringSearch : string * Java.Text.ICharacterIterator * Android.Icu.Text.RuleBasedCollator -> Android.Icu.Text.StringSearch

Parameters

pattern
String

text to look for.

target
ICharacterIterator

target text to search for pattern.

collator
RuleBasedCollator

RuleBasedCollator that defines the language rules

Attributes

Remarks

Initializes the iterator to use the language-specific rules defined in the argument collator to search for argument pattern in the argument target text. No BreakIterators are set to test for logical matches.

Java documentation for android.icu.text.StringSearch.StringSearch(java.lang.String, java.text.CharacterIterator, android.icu.text.RuleBasedCollator).

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

StringSearch(String, ICharacterIterator, ULocale)

Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public StringSearch (string? pattern, Java.Text.ICharacterIterator? target, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.StringSearch : string * Java.Text.ICharacterIterator * Android.Icu.Util.ULocale -> Android.Icu.Text.StringSearch

Parameters

pattern
String

text to look for.

target
ICharacterIterator

target text to search for pattern.

locale
ULocale

locale to use for language and break iterator rules

Attributes

Remarks

Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text. See super class documentation for more details on the use of the target text and BreakIterator.

Java documentation for android.icu.text.StringSearch.StringSearch(java.lang.String, java.text.CharacterIterator, android.icu.util.ULocale).

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

StringSearch(String, ICharacterIterator, Locale)

Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Ljava/util/Locale;)V", "", ApiSince=24)]
public StringSearch (string? pattern, Java.Text.ICharacterIterator? target, Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.StringSearch : string * Java.Text.ICharacterIterator * Java.Util.Locale -> Android.Icu.Text.StringSearch

Parameters

pattern
String

text to look for.

target
ICharacterIterator

target text to search for pattern.

locale
Locale

locale to use for language and break iterator rules

Attributes

Remarks

Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text.

Java documentation for android.icu.text.StringSearch.StringSearch(java.lang.String, java.text.CharacterIterator, java.util.Locale).

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

StringSearch(String, ICharacterIterator, RuleBasedCollator, BreakIterator)

Initializes the iterator to use the language-specific rules defined in the argument collator to search for argument pattern in the argument target text.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Landroid/icu/text/RuleBasedCollator;Landroid/icu/text/BreakIterator;)V", "", ApiSince=24)]
public StringSearch (string? pattern, Java.Text.ICharacterIterator? target, Android.Icu.Text.RuleBasedCollator? collator, Android.Icu.Text.BreakIterator? breakiter);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/CharacterIterator;Landroid/icu/text/RuleBasedCollator;Landroid/icu/text/BreakIterator;)V", "", ApiSince=24)>]
new Android.Icu.Text.StringSearch : string * Java.Text.ICharacterIterator * Android.Icu.Text.RuleBasedCollator * Android.Icu.Text.BreakIterator -> Android.Icu.Text.StringSearch

Parameters

pattern
String

text to look for.

target
ICharacterIterator

target text to search for pattern.

collator
RuleBasedCollator

RuleBasedCollator that defines the language rules

breakiter
BreakIterator

A BreakIterator that is used to determine the boundaries of a logical match. This argument can be null.

Attributes

Remarks

Initializes the iterator to use the language-specific rules defined in the argument collator to search for argument pattern in the argument target text. The argument breakiter is used to define logical matches. See super class documentation for more details on the use of the target text and BreakIterator.

Java documentation for android.icu.text.StringSearch.StringSearch(java.lang.String, java.text.CharacterIterator, android.icu.text.RuleBasedCollator, android.icu.text.BreakIterator).

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