MCPcopy Create free account
hub / github.com/Aghajari/MathParser / isIdentifier

Method isIdentifier

MathParser/src/com/aghajari/math/Utils.java:205–214  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

203 }
204
205 public static boolean isIdentifier(String text) {
206 if (text == null || text.isEmpty())
207 return false;
208 if (!Character.isLetter(text.charAt(0)) && text.charAt(0) != '_')
209 return false;
210 for (int ix = 1; ix < text.length(); ++ix)
211 if (!Character.isLetterOrDigit(text.charAt(ix)) && text.charAt(ix) != '_')
212 return false;
213 return true;
214 }
215}

Callers 5

isExpMethod · 0.95
sigmaMethod · 0.95
limitMethod · 0.95
derivativeMethod · 0.95
integralMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected