MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / matches

Method matches

ij/src/main/java/ij/macro/Functions.java:5827–5837  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

5825 }
5826
5827 double matches(String str) {
5828 str = getStringFunctionArg(str);
5829 String regex = getString();
5830 interp.getRightParen();
5831 try {
5832 return str.matches(regex)?1.0:0.0;
5833 } catch (Exception e) {
5834 interp.error(""+e);
5835 return 0.0;
5836 }
5837 }
5838
5839 void waitForUser() {
5840 IJ.wait(50);

Callers 1

getFunctionValueMethod · 0.95

Calls 5

getStringFunctionArgMethod · 0.95
getStringMethod · 0.95
getRightParenMethod · 0.80
matchesMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected