MCPcopy Create free account
hub / github.com/cschanck/single-file-java / match

Method match

src/main/java/org/sfj/DumbCLIParse.java:86–92  ·  view source on GitHub ↗
(Pattern pattern, String s)

Source from the content-addressed store, hash-verified

84 }
85
86 private static Matcher match(Pattern pattern, String s) {
87 Matcher match = pattern.matcher(s.trim());
88 if (match.matches()) {
89 return match;
90 }
91 return null;
92 }
93
94 /**
95 * Scan for the first argument with a param name that matches the argname.

Callers 4

scanForArgWithParmMethod · 0.95
scanForFlagMethod · 0.95
scanForAllFlagsMethod · 0.95
scanForAllParamArgsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected