MCPcopy Index your code
hub / github.com/processing/processing / checkParen

Method checkParen

app/src/processing/app/ui/Editor.java:2245–2279  ·  view source on GitHub ↗
(char[] array, int index, int stop)

Source from the content-addressed store, hash-verified

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) {

Callers 2

doKeywordMethod · 0.95
referenceCheckMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected