Lines 46-53
Link Here
|
46 |
} |
46 |
} |
47 |
/** |
47 |
/** |
48 |
* StringMatcher constructor takes in a String object that is a simple |
48 |
* StringMatcher constructor takes in a String object that is a simple |
49 |
* pattern which may contain |
49 |
* pattern which may contain '*' for 0 and many characters and |
50 |
* |
50 |
* '?' for exactly one character. |
51 |
* |
51 |
* |
52 |
* Literal '*' and '?' characters must be escaped in the pattern |
52 |
* Literal '*' and '?' characters must be escaped in the pattern |
53 |
* e.g., "\*" means literal "*", etc. |
53 |
* e.g., "\*" means literal "*", etc. |
Lines 227-233
Link Here
|
227 |
} |
227 |
} |
228 |
/** |
228 |
/** |
229 |
* Parses the given pattern into segments seperated by wildcard '*' characters. |
229 |
* Parses the given pattern into segments seperated by wildcard '*' characters. |
230 |
* @param p, a String object that is a simple regular expression with |
230 |
* @param p, a String object that is a simple regular expression with '*' and/or '?' |
231 |
*/ |
231 |
*/ |
232 |
private void parseWildCards() { |
232 |
private void parseWildCards() { |
233 |
if(fPattern.startsWith("*"))//$NON-NLS-1$ |
233 |
if(fPattern.startsWith("*"))//$NON-NLS-1$ |