Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for forDigit (0.04 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedLongs.java

            } else {
              quotient = divide(x, radix);
            }
            long rem = x - quotient * radix;
            buf[--i] = Character.forDigit((int) rem, radix);
            x = quotient;
            // Simple modulo/division approach
            while (x > 0) {
              buf[--i] = Character.forDigit((int) (x % radix), radix);
              x /= radix;
            }
          }
          // Generate string
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/StringUtil.java

         * @param i
         *            the number to convert
         */
        public static void appendHex(final StringBuilder buf, final byte i) {
            buf.append(Character.forDigit((i & 0xf0) >> 4, 16));
            buf.append(Character.forDigit(i & 0x0f, 16));
        }
    
        /**
         * Appends the hexadecimal string representation of a number to the given StringBuilder.
         *
         * @param buf
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 21.9K bytes
    - Viewed (0)
Back to top