src/core/preprocess/ReadTextFile.java
public static int charToInt(int charAt) {
        int mappedChar = 0;
        if (charAt >= 48 && charAt <= 57) mappedChar = charAt - 47;
        if (charAt >= 97 && charAt <= 122) mappedChar = charAt - 86;
        if (charAt == 33) mappedChar = 37;
        if (charAt == 39) mappedChar = 38;
        if (charAt == 44) mappedChar = 39;
        if (charAt == 46) mappedChar = 40;
        if (charAt == 63) mappedChar = 41;
        if (charAt == 228) mappedChar = 42;
        if (charAt == 246) mappedChar = 43;
        return mappedChar;
    }
/**
     * Remaps specific character values to integer values.
     *
     * @param charAt character to be mapped.
     * @return mapped character value.
     */
Remaps specific character values to integer values.
@param charAt character to be mapped.
@return mapped character value.
Remaps specific character values to integer values . @param charAt character to be mapped . @return mapped character value .
public static int charToInt(int charAt) {
        int mappedChar = 0;
        if (charAt >= 48 && charAt <= 57) mappedChar = charAt - 47;
        if (charAt >= 97 && charAt <= 122) mappedChar = charAt - 86;
        if (charAt == 33) mappedChar = 37;
        if (charAt == 39) mappedChar = 38;
        if (charAt == 44) mappedChar = 39;
        if (charAt == 46) mappedChar = 40;
        if (charAt == 63) mappedChar = 41;
        if (charAt == 228) mappedChar = 42;
        if (charAt == 246) mappedChar = 43;
        return mappedChar;
    }
public static int charToInt ( int charAt ) { int mappedChar = 0 ; if ( charAt >= 48 && charAt <= 57 ) mappedChar = charAt - 47 ; if ( charAt >= 97 && charAt <= 122 ) mappedChar = charAt - 86 ; if ( charAt == 33 ) mappedChar = 37 ; if ( charAt == 39 ) mappedChar = 38 ; if ( charAt == 44 ) mappedChar = 39 ; if ( charAt == 46 ) mappedChar = 40 ; if ( charAt == 63 ) mappedChar = 41 ; if ( charAt == 228 ) mappedChar = 42 ; if ( charAt == 246 ) mappedChar = 43 ; return mappedChar ; }
Remaps specific character values to integer values.
Remaps specific character values to integer values .