equal
deleted
inserted
replaced
59 } |
59 } |
60 return buf.toString(); |
60 return buf.toString(); |
61 } |
61 } |
62 |
62 |
63 /* This map must be in ASCENDING ORDER OF THE ESCAPE CODE */ |
63 /* This map must be in ASCENDING ORDER OF THE ESCAPE CODE */ |
64 static private final char[] UNESCAPE_MAP = { |
64 private static final char[] UNESCAPE_MAP = { |
65 /*" 0x22, 0x22 */ |
65 /*" 0x22, 0x22 */ |
66 /*' 0x27, 0x27 */ |
66 /*' 0x27, 0x27 */ |
67 /*? 0x3F, 0x3F */ |
67 /*? 0x3F, 0x3F */ |
68 /*\ 0x5C, 0x5C */ |
68 /*\ 0x5C, 0x5C */ |
69 /*a*/ 0x61, 0x07, |
69 /*a*/ 0x61, 0x07, |
205 } |
205 } |
206 |
206 |
207 /** |
207 /** |
208 * Supplies a zero-padded hex representation of an integer (without 0x) |
208 * Supplies a zero-padded hex representation of an integer (without 0x) |
209 */ |
209 */ |
210 static public String hex(long i, int places) { |
210 public static String hex(long i, int places) { |
211 if (i == Long.MIN_VALUE) return "-8000000000000000"; |
211 if (i == Long.MIN_VALUE) return "-8000000000000000"; |
212 boolean negative = i < 0; |
212 boolean negative = i < 0; |
213 if (negative) { |
213 if (negative) { |
214 i = -i; |
214 i = -i; |
215 } |
215 } |