Java Utililty Methods ASCII to Native

List of utility methods to do ASCII to Native

Description

The list of methods to do ASCII to Native are organized into topic(s).

Method

Stringascii2native(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') {
...
Stringascii2native(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);
...
StringasciiToNative(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) {
...