(String text)
| 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 | } |
no outgoing calls
no test coverage detected