@Test public void testToRawCharArray() { }
public final static char[] toRawCharArray(byte[] barr) { int carrLen = barr.length >> 1; if (carrLen << 1 < barr.length) { carrLen++; } char[] carr = new char[carrLen]; int i = 0, j = 0; while (i < barr.length) { char c = (char) (barr[i] << 8); i++; if (i != barr.length) { c += barr[i] & 0xFF; i++; } carr[j++] = c; } return carr; }
CharUtil { public final static char[] toRawCharArray(byte[] barr) { int carrLen = barr.length >> 1; if (carrLen << 1 < barr.length) { carrLen++; } char[] carr = new char[carrLen]; int i = 0, j = 0; while (i < barr.length) { char c = (char) (barr[i] << 8); i++; if (i != barr.length) { c += barr[i] & 0xFF; i++; } carr[j++] = c; } return carr; } }
CharUtil { public final static char[] toRawCharArray(byte[] barr) { int carrLen = barr.length >> 1; if (carrLen << 1 < barr.length) { carrLen++; } char[] carr = new char[carrLen]; int i = 0, j = 0; while (i < barr.length) { char c = (char) (barr[i] << 8); i++; if (i != barr.length) { c += barr[i] & 0xFF; i++; } carr[j++] = c; } return carr; }  }
CharUtil { public final static char[] toRawCharArray(byte[] barr) { int carrLen = barr.length >> 1; if (carrLen << 1 < barr.length) { carrLen++; } char[] carr = new char[carrLen]; int i = 0, j = 0; while (i < barr.length) { char c = (char) (barr[i] << 8); i++; if (i != barr.length) { c += barr[i] & 0xFF; i++; } carr[j++] = c; } return carr; }  static char toChar(byte b); final static byte[] toSimpleByteArray(char[] carr); final static byte[] toSimpleByteArray(CharSequence charSequence); final static char[] toSimpleCharArray(byte[] barr); final static int toAscii(char c); final static byte[] toAsciiByteArray(char[] carr); final static byte[] toAsciiByteArray(CharSequence charSequence); final static byte[] toRawByteArray(char[] carr); final static char[] toRawCharArray(byte[] barr); final static byte[] toByteArray(char[] carr); final static byte[] toByteArray(char[] carr, String charset); final static char[] toCharArray(byte[] barr); final static char[] toCharArray(byte[] barr, String charset); final static boolean equalsOne(char c, char[] match); final static int findFirstEqual(char[] source, int index, char[] match); final static int findFirstEqual(char[] source, int index, char match); final static int findFirstDiff(char[] source, int index, char[] match); final static int findFirstDiff(char[] source, int index, char match); final static boolean isWhitespace(char c); final static boolean isLowercaseAlpha(char c); final static boolean isUppercaseAlpha(char c); final static boolean isAlphaOrDigit(char c); final static boolean isWordChar(char c); final static boolean isPropertyNameChar(char c); final static boolean isAlpha(char c); final static boolean isDigit(char c); final static boolean isHexDigit(char c); final static boolean isGenericDelimiter(int c); final static boolean isSubDelimiter(int c); final static boolean isReserved(char c); final static boolean isUnreserved(char c); final static boolean isPchar(char c); final static char toUpperAscii(char c); final static char toLowerAscii(char c); }
CharUtil { public final static char[] toRawCharArray(byte[] barr) { int carrLen = barr.length >> 1; if (carrLen << 1 < barr.length) { carrLen++; } char[] carr = new char[carrLen]; int i = 0, j = 0; while (i < barr.length) { char c = (char) (barr[i] << 8); i++; if (i != barr.length) { c += barr[i] & 0xFF; i++; } carr[j++] = c; } return carr; }  static char toChar(byte b); final static byte[] toSimpleByteArray(char[] carr); final static byte[] toSimpleByteArray(CharSequence charSequence); final static char[] toSimpleCharArray(byte[] barr); final static int toAscii(char c); final static byte[] toAsciiByteArray(char[] carr); final static byte[] toAsciiByteArray(CharSequence charSequence); final static byte[] toRawByteArray(char[] carr); final static char[] toRawCharArray(byte[] barr); final static byte[] toByteArray(char[] carr); final static byte[] toByteArray(char[] carr, String charset); final static char[] toCharArray(byte[] barr); final static char[] toCharArray(byte[] barr, String charset); final static boolean equalsOne(char c, char[] match); final static int findFirstEqual(char[] source, int index, char[] match); final static int findFirstEqual(char[] source, int index, char match); final static int findFirstDiff(char[] source, int index, char[] match); final static int findFirstDiff(char[] source, int index, char match); final static boolean isWhitespace(char c); final static boolean isLowercaseAlpha(char c); final static boolean isUppercaseAlpha(char c); final static boolean isAlphaOrDigit(char c); final static boolean isWordChar(char c); final static boolean isPropertyNameChar(char c); final static boolean isAlpha(char c); final static boolean isDigit(char c); final static boolean isHexDigit(char c); final static boolean isGenericDelimiter(int c); final static boolean isSubDelimiter(int c); final static boolean isReserved(char c); final static boolean isUnreserved(char c); final static boolean isPchar(char c); final static char toUpperAscii(char c); final static char toLowerAscii(char c);  }