Lines Matching defs:sb
163 * Equivalent to sb.append(Integer.toString(i)).
165 public static void appendInt(StringBuilder sb, int i) {
166 convertInt(sb, i);
170 * Returns the string representation of i and leaves sb alone if sb is null.
171 * Returns null and appends the string representation of i to sb if sb is non-null.
173 private static String convertInt(StringBuilder sb, int i) {
201 if (sb != null) {
202 sb.append(quickResult);
209 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen];
235 if (sb != null) {
236 sb.append(buf, cursor, bufLen - cursor);
297 * Equivalent to sb.append(Long.toString(l)).
299 public static void appendLong(StringBuilder sb, long l) {
300 convertLong(sb, l);
304 * Returns the string representation of n and leaves sb alone if sb is null.
305 * Returns null and appends the string representation of n to sb if sb is non-null.
307 private static String convertLong(StringBuilder sb, long n) {
310 return convertInt(sb, i);
319 if (sb != null) {
320 sb.append(quickResult);
328 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen];
378 if (sb != null) {
379 sb.append(buf, cursor, bufLen - cursor);
450 public static StringBuilder appendByteAsHex(StringBuilder sb, byte b, boolean upperCase) {
452 sb.append(digits[(b >> 4) & 0xf]);
453 sb.append(digits[b & 0xf]);
454 return sb;