Lines Matching refs:buf

139         char[] buf = new char[bufLen];
144 buf[--cursor] = DIGITS[radix * q - i];
149 buf[--cursor] = '-';
152 return new String(buf, cursor, bufLen - cursor);
209 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen];
217 buf[--cursor] = ONES[r];
218 buf[--cursor] = TENS[r];
227 buf[--cursor] = DIGITS[r];
232 buf[--cursor] = '-';
236 sb.append(buf, cursor, bufLen - cursor);
239 return new String(buf, cursor, bufLen - cursor);
273 char[] buf = new char[bufLen];
278 buf[--cursor] = DIGITS[(int) (radix * q - v)];
283 buf[--cursor] = '-';
286 return new String(buf, cursor, bufLen - cursor);
328 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen];
331 int cursor = intIntoCharArray(buf, bufLen, low);
335 buf[--cursor] = '0';
348 * low-order digit, put it in buf, and then call intIntoCharArray
352 cursor = intIntoCharArray(buf, cursor, (int) n);
368 buf[--cursor] = DIGITS[midDigit];
372 cursor = intIntoCharArray(buf, cursor, rest);
376 buf[--cursor] = '-';
379 sb.append(buf, cursor, bufLen - cursor);
382 return new String(buf, cursor, bufLen - cursor);
393 private static int intIntoCharArray(char[] buf, int cursor, int n) {
405 buf[--cursor] = ONES[r];
406 buf[--cursor] = TENS[r];
415 buf[--cursor] = DIGITS[r];
423 char[] buf = new char[bufLen];
427 buf[--cursor] = DIGITS[i & 1];
430 return new String(buf, cursor, bufLen - cursor);
440 char[] buf = new char[bufLen];
444 buf[--cursor] = DIGITS[((int) v) & 1];
447 return new String(buf, cursor, bufLen - cursor);
459 char[] buf = new char[2]; // We always want two digits.
460 buf[0] = digits[(b >> 4) & 0xf];
461 buf[1] = digits[b & 0xf];
462 return new String(buf, 0, 2);
467 char[] buf = new char[bytes.length * 2];
470 buf[c++] = digits[(b >> 4) & 0xf];
471 buf[c++] = digits[b & 0xf];
473 return new String(buf);
478 char[] buf = new char[bufLen];
483 buf[--cursor] = digits[i & 0xf];
486 return new String(buf, cursor, bufLen - cursor);
496 char[] buf = new char[bufLen];
500 buf[--cursor] = DIGITS[((int) v) & 0xF];
503 return new String(buf, cursor, bufLen - cursor);
508 char[] buf = new char[bufLen];
512 buf[--cursor] = DIGITS[i & 7];
515 return new String(buf, cursor, bufLen - cursor);
524 char[] buf = new char[bufLen];
528 buf[--cursor] = DIGITS[((int) v) & 7];
531 return new String(buf, cursor, bufLen - cursor);