Microsoft SDK for Java

matchOne

The matchOne method of the WildcardExpression Class contains the following signatures:

matchOne(WildcardExpression[] exprs, int ofs int len, String s)
matchOne(WildcardExpression[] exprs, Sting s)

matchOne(WildcardExpression[] exprs, int ofs, int len, String s)

Evaluates a list of expressions on a string.

Syntax

public static int matchOne(WildcardExpression[] exprs, int ofs, int len, String s);

Return Value

Returns the index of the expression that matched; returns -1 if no match occurred.

Parameters

exprs A list of expressions.
ofs The offset into the list to begin matching.
len The number of elements to match against.
s The string to evaluate the expressions on.

matchOne(WildcardExpression[] exprs, String s)

Evaluates a list of expressions on a string.

Syntax

public static int matchOne(WildcardExpression[] exprs, String s);

Return Value

Returns the index of the expression that matched; returns -1 if no match occurred.

Parameters

exprs A list of expressions.
s The string to evaluate the expressions on.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.