Searched refs:match (Results 1 - 25 of 38) sorted by relevance

12

/opengrok/test/org/opensolaris/opengrok/search/context/
H A DWildCardMatcherTest.java35 * Test of match method.
40 assertEquals(LineMatcher.MATCHED, m.match("wildcard"));
41 assertEquals(LineMatcher.MATCHED, m.match("wildward"));
42 assertEquals(LineMatcher.MATCHED, m.match("wilddard"));
43 assertEquals(LineMatcher.MATCHED, m.match("wild?ard"));
44 assertEquals(LineMatcher.NOT_MATCHED, m.match("wildard"));
45 assertEquals(LineMatcher.NOT_MATCHED, m.match("wildcarde"));
46 assertEquals(LineMatcher.NOT_MATCHED, m.match("awildcard"));
47 assertEquals(LineMatcher.NOT_MATCHED, m.match("wildddard"));
48 assertEquals(LineMatcher.NOT_MATCHED, m.match("mildcar
[all...]
H A DRegexpMatcherTest.java35 * Test of match method.
40 assertEquals(LineMatcher.NOT_MATCHED, m.match("regx"));
41 assertEquals(LineMatcher.MATCHED, m.match("regeex"));
44 assertEquals(LineMatcher.NOT_MATCHED, m.match("regex"));
45 assertEquals(LineMatcher.MATCHED, m.match("Regex"));
H A DContextTest.java267 * long (>100 characters) line which contains a match is not terminated
284 boolean match
286 assertTrue("No match found", match);
290 assertTrue("No match on line #1", s.contains("href=\"#1\""));
314 boolean match
316 assertTrue("No match found", match);
322 * Test that a line with more than 100 characters after the first match is
343 boolean match
[all...]
/opengrok/src/org/opensolaris/opengrok/index/
H A DIgnoredFiles.java75 return match(file) && file.isFile();
84 return match(name);
H A DIgnoredDirs.java61 return match(file) && file.isDirectory();
70 return match(name);
H A DFilter.java103 * Does the file match any of the filenames, patterns or paths ?
107 public boolean match(File file) { method in class:Filter
116 // Try to match the basename first.
140 * Does the file name match any of the filenames, patterns or paths ?
144 public boolean match(String name) { method in class:Filter
145 return match(new File(name));
149 * Add a pattern to the correct list of internal filters to match
171 * @param pattern a pattern to match file names against
176 // other characters should be quoted to ensure exact match.
/opengrok/test/org/opensolaris/opengrok/configuration/
H A DGroupTest.java100 assertTrue("Should match pattern", g.match(t));
104 assertFalse("Shouldn't match, pattern is shorter", g.match(t));
108 assertTrue("Should match pattern", g.match(t));
112 assertTrue("Should match pattern", g.match(t));
116 assertFalse("Shouldn't match pattern", g.match(
[all...]
H A DGroupsTest.java166 private void testSingleMatch(Set<Group> groups, int expectedlines, String match) {
171 new Object[]{out, groups, match});
176 "it expects that \"" + match + "\" will match " + expectedlines + " records",
/opengrok/src/org/opensolaris/opengrok/search/context/
H A DPrefixMatcher.java37 public int match(String token) { method in class:PrefixMatcher
H A DPhraseMatcher.java40 public int match(String token) { method in class:PhraseMatcher
47 //System.out.println(" PhraseMatcher match complete with " + token);
H A DTokenSetMatcher.java49 public int match(String token) { method in class:TokenSetMatcher
H A DLineMatcher.java93 public abstract int match(String line); method in class:LineMatcher
H A DRegexpMatcher.java55 public int match(String line) { method in class:RegexpMatcher
H A DWildCardMatcher.java38 public int match(String token) { method in class:WildCardMatcher
H A DHistoryContext.java49 * since lucene does not easily give the match context.
162 matchState = m[i].match(token);
194 * Write a match to a stream.
198 * @param start start position of the match
199 * @param end position of the first char after the match
211 String match = line.substring(start, end);
221 printHTML(out, match, flatten);
H A DContext.java28 * since lucene does not easily give the match context.
157 if (m[i].match(tag.symbol) == LineMatcher.MATCHED) {
282 matchState = m[i].match(token);
/opengrok/web/js/
H A Dtablesorter.parsers.js30 var date = s.match(/^(\d{2})\-(\w{3})\-(\d{4})$/);
67 var parts = s.match(/^(\d{1,3}(?:[, ]?\d{1,3})*(?:\.\d+)?|\.\d+) ?(\w*)$/);
/opengrok/test/org/opensolaris/opengrok/web/
H A DEftarFileTest.java108 StringBuilder match = new StringBuilder();
109 match.append("Description ");
110 int offset = match.length();
114 match.setLength(offset);
115 match.append(Integer.toString(ii));
117 assertEquals(match.toString(), er.get(sb.toString()));
/opengrok/src/org/opensolaris/opengrok/analysis/c/
H A DCxxXref.lex77 Matcher match = Pattern.compile("(#.*)(include)(.*)<(.*)>").matcher(yytext());
78 if (match.matches()) {
79 out.write(match.group(1));
80 writeSymbol(match.group(2), CxxConsts.kwd, yyline);
81 out.write(match.group(3));
83 String path = match.group(4);
H A DCXref.lex78 Matcher match = Pattern.compile("(#.*)(include)(.*)<(.*)>").matcher(yytext());
79 if (match.matches()) {
80 out.write(match.group(1));
81 writeSymbol(match.group(2), Consts.kwd, yyline);
82 out.write(match.group(3));
84 String path = match.group(4);
/opengrok/src/org/opensolaris/opengrok/configuration/
H A DGroups.java61 String match = null;
101 match = getopt.getOptarg();
136 if (match != null) {
143 matchGroups(System.out, cfg.getGroups(), match);
241 * Finds groups which would match the project.
245 * @param match project description
247 private static void matchGroups(PrintStream out, Set<Group> groups, String match) { argument
249 p.setDescription(match);
255 if (g.match(p)) {
262 out.println(matched.size() + " group(s) match(e
[all...]
H A DGroup.java148 * Test group for a match
153 public boolean match(Project p) { method in class:Group
/opengrok/src/org/opensolaris/opengrok/analysis/
H A DCtags.java355 boolean match;
357 match = true;
360 match = false;
364 if (match) {
443 final String match;
447 match = tagLine.substring(mstart + 3, p - 4).
451 match = tagLine.substring(mstart + 3, mstart + MAX_METHOD_LINE_LENGTH - 1). // +3 - 4 = -1
464 addTag(defs, seenSymbols, lnum, def, type, match, classInher, signature);
486 //log.fine("Read = " + def + " : " + lnum + " = " + kind + " IS " + inher + " M " + match);
/opengrok/egrok/src/org/opensolaris/opengrok/egrok/ui/
H A DResultsDialog.java279 for (Entry<IProject, Integer> match : matches.entrySet()) {
280 IProject project = match.getKey();
281 Integer matchingLocation = match.getValue();
284 System.out.println("match: " + matchingString);
/opengrok/
H A Dmvnw.cmd63 echo Please set the JAVA_HOME variable in your environment to match the >&2
74 echo Please set the JAVA_HOME variable in your environment to match the >&2

Completed in 91 milliseconds

12