List of utility methods to do ASCII to Native
String | ascii2native(String code) asciinative char aChar; int len = code.length(); StringBuffer outBuffer = new StringBuffer(len); for (int x = 0; x < len;) { aChar = code.charAt(x++); if (aChar == '\\') { aChar = code.charAt(x++); if (aChar == 'u') { ... |
String | ascii2native(String line) Replaces Unicode-Escapes. StringBuilder sb = new StringBuilder(); int inputLen = line.length(); for (int i = 0; i < inputLen; i++) { char c = line.charAt(i); if (c != '\\' || i >= inputLen - 5) { sb.append(c); } else { char u = line.charAt(++i); ... |
String | asciiToNative(String input) ascii To Native if (input == null) { return null; StringBuffer buffer = new StringBuffer(input.length()); boolean precedingBackslash = false; for (int i = 0; i < input.length(); i++) { char c = input.charAt(i); if (precedingBackslash) { ... |