Lines Matching defs:entry

45  * Patterns are strings of the form <entry>*, where <entry> has the
47 * <pattern> := <entry>*
48 * <entry> := <separator><chars>{"/"<extension>}
94 PatternEntry entry = (PatternEntry) patterns.get(i);
95 if (entry.extension.length() != 0) {
98 extList.add(entry);
108 entry.addToBuffer(result, false, withWhiteSpace, null);
124 PatternEntry entry = (PatternEntry) patterns.get(i);
125 if (entry.extension.length() == 0) {
126 return entry;
152 PatternEntry entry = (PatternEntry) patterns.get(i);
153 if (entry != null) {
154 entry.addToBuffer(result, true, withWhiteSpace, null);
180 PatternEntry entry = parser.next();
181 while (entry != null) {
182 fixEntry(entry);
183 entry = parser.next();
197 * @param index the offset of the desired pattern entry
198 * @return the requested pattern entry
218 // whether a given entry is already in the table. Since we're using an
232 If not, then remove the current entry, and add it after lastEntry
237 // check to see whether the new entry has the same characters as the previous
238 // entry did (this can happen when a pattern declaring a difference between two
250 // otherwise, just skip this entry and behave as though you never saw it
302 private final int findLastEntry(PatternEntry entry,
305 if (entry == null)
308 if (entry.strength != PatternEntry.RESET) {
310 // most likely entry is last one
313 if ((entry.chars.length() == 1)) {
314 int index = entry.chars.charAt(0) >> BYTEPOWER;
316 (BITARRAYMASK << (entry.chars.charAt(0) & BYTEMASK))) != 0) {
317 oldIndex = patterns.lastIndexOf(entry);
320 oldIndex = patterns.lastIndexOf(entry);
323 throw new ParseException("couldn't find last entry: "
324 + entry, oldIndex);
330 if (e.chars.regionMatches(0,entry.chars,0,
332 excessChars.append(entry.chars.substring(e.chars.length(),
333 entry.chars.length()));
338 throw new ParseException("couldn't find: " + entry, i);