Home | History | Annotate | Download | only in util

Lines Matching defs:patternLength

32             int patternLength = 0, starCount = 0, questionCount = 0;
44 chars [patternLength ++] = '*';
51 chars [patternLength ++] = ch;
55 // [assertion: patternLength > 0]
59 if (patternLength == 1)
62 return new EndsWithMatcher (chars, patternLength);
63 else if (chars [patternLength - 1] == '*')
64 return new StartsWithMatcher (chars, patternLength);
67 return new PatternMatcher (chars, patternLength);
180 StartsWithMatcher (final char [] pattern, final int patternLength)
183 m_prefix = new String (pattern, 0, patternLength - 1);
219 EndsWithMatcher (final char [] pattern, final int patternLength)
222 m_suffix = new String (pattern, 1, patternLength - 1);
241 final int patternLength = m_patternLength;
243 // [assertion: patternLength > 0]
254 for ( ; pi + i < patternLength; ++ i)
300 final int patternLength = m_patternLength;
302 // [assertion: patternLength > 0]
313 for ( ; pi + i < patternLength; ++ i)
351 PatternMatcher (final char [] pattern, final int patternLength)
354 m_patternLength = patternLength;