Lines Matching defs:position
148 * @param position The index into the buffer
152 public char getChar(int position) {
153 assert(position < 0); // Developer error if it triggers.
155 int absolutePosition = getAbsolutePosition(position);
164 * Sets the given {@code input} at the given {@code position} of the buffer.
171 * @param position The index at which to set the character
175 public boolean setChar(int position, char input) {
176 assert(position < 0); // Developer error if it triggers.
178 int absolutePosition = getAbsolutePosition(position);
199 int position;
200 for (position = end; HtmlUtils.isJavascriptIdentifier(getChar(position));
201 position--) {
203 if ((position + 1) >= end) {
206 return slice(position + 1, end);
229 for (int position = start; position <= end; position++) {
230 char c = getChar(position);
239 * Returns the position relative to the start of the buffer or -1
240 * if the position is past the size of the buffer.
242 * @param position the index to be translated
243 * @return the position relative to the start of the buffer
245 private int getAbsolutePosition(int position) {
246 assert (position < 0); // Developer error if it triggers.
247 if (position <= -buffer.length) {
254 if (position < -len) {
257 int absolutePosition = (position + endIndex) % buffer.length;