(char[] array, int index, int stop)
| 2243 | |
| 2244 | |
| 2245 | static public boolean checkParen(char[] array, int index, int stop) { |
| 2246 | // boolean paren = false; |
| 2247 | // int stepper = i + 1; |
| 2248 | // while (stepper < mlength) { |
| 2249 | // if (array[stepper] == '(') { |
| 2250 | // paren = true; |
| 2251 | // break; |
| 2252 | // } |
| 2253 | // stepper++; |
| 2254 | // } |
| 2255 | while (index < stop) { |
| 2256 | // if (array[index] == '(') { |
| 2257 | // return true; |
| 2258 | // } else if (!Character.isWhitespace(array[index])) { |
| 2259 | // return false; |
| 2260 | // } |
| 2261 | switch (array[index]) { |
| 2262 | case '(': |
| 2263 | return true; |
| 2264 | |
| 2265 | case ' ': |
| 2266 | case '\t': |
| 2267 | case '\n': |
| 2268 | case '\r': |
| 2269 | index++; |
| 2270 | break; |
| 2271 | |
| 2272 | default: |
| 2273 | // System.out.println("defaulting because " + array[index] + " " + PApplet.hex(array[index])); |
| 2274 | return false; |
| 2275 | } |
| 2276 | } |
| 2277 | // System.out.println("exiting " + new String(array, index, stop - index)); |
| 2278 | return false; |
| 2279 | } |
| 2280 | |
| 2281 | |
| 2282 | protected boolean functionable(char c) { |
no outgoing calls
no test coverage detected