equal
deleted
inserted
replaced
233 byte[] result = new byte[2]; |
233 byte[] result = new byte[2]; |
234 putChar(result, 0, c); |
234 putChar(result, 0, c); |
235 return result; |
235 return result; |
236 } |
236 } |
237 |
237 |
|
238 static byte[] toBytesSupplementary(int cp) { |
|
239 byte[] result = new byte[4]; |
|
240 putChar(result, 0, Character.highSurrogate(cp)); |
|
241 putChar(result, 1, Character.lowSurrogate(cp)); |
|
242 return result; |
|
243 } |
|
244 |
238 @HotSpotIntrinsicCandidate |
245 @HotSpotIntrinsicCandidate |
239 public static void getChars(byte[] value, int srcBegin, int srcEnd, char dst[], int dstBegin) { |
246 public static void getChars(byte[] value, int srcBegin, int srcEnd, char dst[], int dstBegin) { |
240 // We need a range check here because 'getChar' has no checks |
247 // We need a range check here because 'getChar' has no checks |
241 if (srcBegin < srcEnd) { |
248 if (srcBegin < srcEnd) { |
242 checkBoundsOffCount(srcBegin, srcEnd - srcBegin, value); |
249 checkBoundsOffCount(srcBegin, srcEnd - srcBegin, value); |