/* Class296 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class296
{
    public String aString3396;
    public byte aByte3397;
    public int anInt3398;
    
    Class296() {
	/* empty */
    }
    
    static final void method4007(Class612 class612, int i) {
	int i_0_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_0_, (short) -11571);
	Class203 class203 = Class163_Sub20.aClass203Array9719[i_0_ >> 16];
	Class273.method3752(class211, class203, class612, 1105641059);
    }
    
    public static boolean method4008(char c, byte i) {
	if (c >= ' ' && c <= '~')
	    return true;
	if (c >= '\u00a0' && c <= '\u00ff')
	    return true;
	if (c == '\u20ac' || c == '\u0152' || '\u2014' == c || '\u0153' == c
	    || c == '\u0178')
	    return true;
	return false;
    }
    
    static char method4009(char c, byte i) {
	switch (c) {
	case '\u00d1':
	case '\u00f1':
	    return 'n';
	case '\u00df':
	    return 'b';
	case '\u00d2':
	case '\u00d3':
	case '\u00d4':
	case '\u00d5':
	case '\u00d6':
	case '\u00f2':
	case '\u00f3':
	case '\u00f4':
	case '\u00f5':
	case '\u00f6':
	    return 'o';
	default:
	    return Character.toLowerCase(c);
	case '#':
	case '[':
	case ']':
	    return c;
	case '\u00cd':
	case '\u00ce':
	case '\u00cf':
	case '\u00ed':
	case '\u00ee':
	case '\u00ef':
	    return 'i';
	case '\u00c8':
	case '\u00c9':
	case '\u00ca':
	case '\u00cb':
	case '\u00e8':
	case '\u00e9':
	case '\u00ea':
	case '\u00eb':
	    return 'e';
	case '\u00c0':
	case '\u00c1':
	case '\u00c2':
	case '\u00c3':
	case '\u00c4':
	case '\u00e0':
	case '\u00e1':
	case '\u00e2':
	case '\u00e3':
	case '\u00e4':
	    return 'a';
	case '\u00d9':
	case '\u00da':
	case '\u00db':
	case '\u00dc':
	case '\u00f9':
	case '\u00fa':
	case '\u00fb':
	case '\u00fc':
	    return 'u';
	case ' ':
	case '-':
	case '_':
	case '\u00a0':
	    return '_';
	case '\u00c7':
	case '\u00e7':
	    return 'c';
	case '\u00ff':
	case '\u0178':
	    return 'y';
	}
    }
    
    static final void method4010(Class612 class612, byte i) {
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = 2121130505 * Class84.anInt1197;
    }
    
    static void method4011(int i, short i_1_) {
	int i_2_;
	if (i == 0)
	    i_2_ = 0;
	else if (1 == i)
	    i_2_ = 1;
	else if (2 == i)
	    i_2_ = 2;
	else
	    return;
	int i_3_;
	if ((double) Class497_Sub1.aFloat6786 == 2.0)
	    i_3_ = 0;
	else if (3.0 == (double) Class497_Sub1.aFloat6786)
	    i_3_ = 1;
	else if (4.0 == (double) Class497_Sub1.aFloat6786)
	    i_3_ = 2;
	else if (6.0 == (double) Class497_Sub1.aFloat6786)
	    i_3_ = 3;
	else if ((double) Class497_Sub1.aFloat6786 >= 8.0)
	    i_3_ = 4;
	else
	    return;
	Class171.aClass152_1984
	    = Class497_Sub1.aClass152ArrayArray10457[i_2_][i_3_];
	Class479_Sub2.aClass4_10068
	    = Class497_Sub1.aClass4ArrayArray10458[i_2_][i_3_];
    }
    
    static String method4012(String string, int i) {
	String string_4_ = null;
	int i_5_ = string.indexOf("--> ");
	if (i_5_ >= 0) {
	    string_4_ = string.substring(0, 4 + i_5_);
	    string = string.substring(4 + i_5_);
	}
	int i_6_ = -1;
	if (string.startsWith("directlogin "))
	    i_6_ = string.indexOf(" ", "directlogin ".length());
	if (i_6_ >= 0) {
	    int i_7_ = string.length();
	    string
		= new StringBuilder().append(string.substring(0, i_6_)).append
		      (" ").toString();
	    for (int i_8_ = i_6_ + 1; i_8_ < i_7_; i_8_++)
		string = new StringBuilder().append(string).append("*")
			     .toString();
	}
	if (null != string_4_)
	    return new StringBuilder().append(string_4_).append(string)
		       .toString();
	return string;
    }
}
