Lines Matching refs:stack
83 private int stack[]; // stack used to handle paired punctuation if encountered
172 // if it's an open character, push it onto the stack.
174 // stack, and use that script code. Any non-matching open
175 // characters above it on the stack will be popped.
178 if (stack == null) {
179 stack = new int[32];
180 } else if (parenSP == stack.length) {
181 int[] newstack = new int[stack.length + 32];
182 System.arraycopy(stack, 0, newstack, 0, stack.length);
183 stack = newstack;
186 stack[parenSP++] = pairIndex;
187 stack[parenSP++] = scriptCode;
191 while ((parenSP -= 2) >= 0 && stack[parenSP] != pi);
194 sc = stack[parenSP+1];
211 stack[startSP+1] = scriptCode;
217 // pop it from the stack