string ls_str = "";
string m = "";
int ls = 0;
int li_e = 3;
int li_d = 7;
int li_n = 33;
string re_str = "";
long lul_temp = 0;
long lul_x = 0;
long lul_y = 0;
int i = 0;
long lul_x0 = 0;
long lul_x1 = 0;
for (ls = 0; ls < ls_string.Length; ls++)
{
m = ls_string.Substring(ls, 1);// mid(ls_string,ls,1)
ls_str += Chr(Asc(m) - 20);
}
public string Right(string str, int len)
{
if (str.Length >= len)
{
return str.Substring(len);
}
else
{
return str;
}
}
public string Left(string str, int len)
{
if (str.Length >= len)
{
return str.Substring(0, len);
}
else
{
return str;
}
}
public int Asc(string character)
{
if (character.Length == 1)
{
System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding();
int intAsciiCode = (int)asciiEncoding.GetBytes(character)[0];
return (intAsciiCode);
}
else
{
throw new Exception("Character is not valid.");
}
}
public string Chr(int asciiCode)
{
if (asciiCode >= 0 && asciiCode <= 255)
{
System.Text.ASCIIEncoding asciiEncoding = new System.Text.ASCIIEncoding();
byte[] byteArray = new byte[] { (byte)asciiCode };
string strCharacter = asciiEncoding.GetString(byteArray);
return (strCharacter);
}
else
{
throw new Exception("ASCII Code is not valid.");
}
}