List of utility methods to do Char Convert To
boolean | convertCharToBoolean(final char value) convert Char To Boolean return (value == ABAP_TRUE);
|
Object[] | convertCharToCharacterArray(final Object originalArray) convert Char To Character Array final char[] original = (char[]) originalArray; final int len = original.length; final Character[] converted = new Character[len]; for (int i = 0; i < converted.length; i++) { converted[i] = Character.valueOf(original[i]); return converted; |
int | convertCharToInt(char input) convert Char To Int if ((int) input >= (int) 'A') { return ((int) input - (int) 'A' + 10); } else { return ((int) input - (int) '0'); |
void | convertCharToShort(final char[] tmp, final short[] buffer) Convert char to short. for (int i = 0; i < buffer.length; i++) buffer[i] = (short) tmp[i]; |
String | convertCharToSimpleRegex(String str, char lastChar, char currentChar) convert Char To Simple Regex if (Character.isLetter(currentChar)) { if (Character.isLetter(lastChar)) { } else if (Character.isDigit(lastChar)) { str += "N"; } else { if (lastChar != '\0') { str += Character.toString(lastChar); } else if (Character.isDigit(currentChar)) { if (Character.isLetter(lastChar)) { str += "W"; } else if (Character.isDigit(lastChar)) { } else { if (lastChar != '\0') { str += Character.toString(lastChar); } else { if (Character.isLetter(lastChar)) { str += "W"; } else if (Character.isDigit(lastChar)) { str += "N"; } else { if (lastChar != '\0') { str += Character.toString(lastChar); return str; |