Matcher.UseTransparentBounds(Boolean) Method

Definition

Sets the transparency of region bounds for this matcher.

[Android.Runtime.Register("useTransparentBounds", "(Z)Ljava/util/regex/Matcher;", "")]
public Java.Util.Regex.Matcher UseTransparentBounds (bool b);
[<Android.Runtime.Register("useTransparentBounds", "(Z)Ljava/util/regex/Matcher;", "")>]
member this.UseTransparentBounds : bool -> Java.Util.Regex.Matcher

Parameters

b
Boolean

a boolean indicating whether to use opaque or transparent regions

Returns

this matcher

Attributes

Remarks

Sets the transparency of region bounds for this matcher.

Invoking this method with an argument of true will set this matcher to use transparent bounds. If the boolean argument is false, then opaque bounds will be used.

Using transparent bounds, the boundaries of this matcher's region are transparent to lookahead, lookbehind, and boundary matching constructs. Those constructs can see beyond the boundaries of the region to see if a match is appropriate.

Using opaque bounds, the boundaries of this matcher's region are opaque to lookahead, lookbehind, and boundary matching constructs that may try to see beyond them. Those constructs cannot look past the boundaries so they will fail to match anything outside of the region.

By default, a matcher uses opaque bounds.

Added in 1.5.

Java documentation for java.util.regex.Matcher.useTransparentBounds(boolean).

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