Searched defs:hex (Results 1 - 11 of 11) sorted by relevance

/openjdk7/jdk/test/java/util/Locale/
H A DThaiGov.java35 char[] hex = {'0', '1', '2', '3', field in class:ThaiGov
57 buff.append(hex[ch>>12]);
58 buff.append(hex[(ch>>8) & 0x0F]);
59 buff.append(hex[(ch>>4) & 0x0F]);
60 buff.append(hex[ch & 0x0F]);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orbutil/
H A DHexOutputStream.java41 static private final char hex[] = { field in class:HexOutputStream
65 writer.write(hex[((b >> 4) & 0xF)]);
66 writer.write(hex[((b >> 0) & 0xF)]);
/openjdk7/jdk/test/sun/net/idn/
H A DTestStringPrep.java265 result.append(hex(ch));
274 private static String hex(char ch) { method in class:TestStringPrep
/openjdk7/jdk/test/sun/security/krb5/
H A DRFC396xTest.java59 assertStringEquals(hex((byte[])nfold.invoke(null, "012345".getBytes("UTF-8"), 64)), "be072631276b1955");
60 assertStringEquals(hex((byte[])nfold.invoke(null, "password".getBytes("UTF-8"), 56)), "78a07b6caf85fa");
61 assertStringEquals(hex((byte[])nfold.invoke(null, "Rough Consensus, and Running Code".getBytes("UTF-8"), 64)), "bb6ed30870b7f0e0");
62 assertStringEquals(hex((byte[])nfold.invoke(null, "password".getBytes("UTF-8"), 168)), "59e4a8ca7c0385c3c37b3f6d2000247cb6e6bd5b3e");
63 assertStringEquals(hex((byte[])nfold.invoke(null, "MASSACHVSETTS INSTITVTE OF TECHNOLOGY".getBytes("UTF-8"), 192)), "db3b0d8f0b061e603282b308a50841229ad798fab9540c1b");
64 assertStringEquals(hex((byte[])nfold.invoke(null, "Q".getBytes("UTF-8"), 168)), "518a54a215a8452a518a54a215a8452a518a54a215");
65 assertStringEquals(hex((byte[])nfold.invoke(null, "ba".getBytes("UTF-8"), 168)), "fb25d531ae8974499f52fd92ea9857c4ba24cf297e");
66 assertStringEquals(hex((byte[])nfold.invoke(null, "kerberos".getBytes("UTF-8"), 64)), "6b65726265726f73");
67 assertStringEquals(hex((byte[])nfold.invoke(null, "kerberos".getBytes("UTF-8"), 128)), "6b65726265726f737b9b5b2b93132b93");
68 assertStringEquals(hex((byt
215 static String hex(byte[] bs) { method in class:RFC396xTest
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DValueFormatter.java43 static void init(int length, boolean hex, JFormattedTextField text) { argument
44 ValueFormatter formatter = new ValueFormatter(length, hex);
80 ValueFormatter(int length, boolean hex) { argument
82 this.radix = hex ? 16 : 10;
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/
H A DSnmpString.java117 * @param hex The hexadecimal string value to convert.
120 public static String HexToChar(String hex) { argument
121 char value[] = new char[hex.length()/2];
124 value[i] = (char)Integer.parseInt(hex.substring(2*i, 2*i+2), 16);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/
H A DQPEncoderStream.java161 private final static char hex[] = { field in class:QPEncoderStream
175 out.write(hex[c >> 4]);
176 out.write(hex[c & 0xf]);
/openjdk7/jdk/src/share/classes/sun/text/normalizer/
H A DUtility.java78 hex(c, four ? 4 : 8, buf);
229 * Convert a integer to size width hex uppercase digits.
230 * E.g., hex('a', 4, str) => "0041".
234 public static StringBuffer hex(int ch, int width, StringBuffer output) { method in class:Utility
239 * Convert a integer to size width (minimum) hex uppercase digits.
240 * E.g., hex('a', 4, str) => "0041". If the integer requires more
243 public static String hex(int ch, int width) { method in class:Utility
/openjdk7/jdk/src/share/classes/sun/java2d/pisces/
H A DPiscesTileGenerator.java229 System.out.print(hex(tile[i], 2));
238 static String hex(int v, int d) { method in class:PiscesTileGenerator
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/
H A DUtil.java1305 static String hexToOctal (String hex) argument
1307 // The format of hex is '/xXX' where XX is one or two hex digits.
1309 hex = hex.substring (3, hex.length () - 1);
1310 return "'\\" + Integer.toString (Integer.parseInt (hex, 16), 8) + "'";
/openjdk7/jdk/make/tools/src/build/tools/generatecharacter/
H A DGenerateCharacter.java236 (for hex) or with spaces (for decimal). If the number of digits required to
241 static String hex(long n) { return Long.toHexString(n).toUpperCase(); } method in class:GenerateCharacter
488 FAIL("Character " + hex(c) +
794 if (x.equals("maskIsJavaIdentifierStart")) return "0x" + hex(maskIsJavaIdentifierStart);
795 if (x.equals("maskIsJavaIdentifierPart")) return "0x" + hex(maskIsJavaIdentifierPart);
797 if (x.equals("maskDigitOffset")) return "0x" + hex(maskDigitOffset);
798 if (x.equals("maskDigit")) return "0x" + hex(maskDigit);
800 if (x.equals("maskNumericType")) return "0x" + hex(maskNumericType);
807 if (x.equals("maskType")) return "0x" + hex(maskType);
809 if (x.equals("maskBidi")) return "0x" + hex(maskBid
[all...]

Completed in 280 milliseconds