2021-02-28 17:40:56 -05:00
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace sceWork
|
2021-02-06 17:43:14 -05:00
|
|
|
|
{
|
|
|
|
|
|
public class tableEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
public string A;
|
|
|
|
|
|
public string B;
|
|
|
|
|
|
|
|
|
|
|
|
public tableEntry(string str)
|
|
|
|
|
|
{
|
|
|
|
|
|
str = str.Replace(" ", "");
|
|
|
|
|
|
str = str.Replace("\t", "");
|
2021-02-28 17:40:56 -05:00
|
|
|
|
int startIndex = str.IndexOf('=');
|
|
|
|
|
|
|
2021-02-06 17:43:14 -05:00
|
|
|
|
this.A = str.Remove(startIndex);
|
2021-02-28 17:40:56 -05:00
|
|
|
|
this.A = this.A.ToUpper();
|
2021-02-06 17:43:14 -05:00
|
|
|
|
this.B = str.Remove(0, startIndex + 1);
|
2021-02-28 17:40:56 -05:00
|
|
|
|
int commentIndex = this.B.IndexOf(';');
|
|
|
|
|
|
if (commentIndex > 0)
|
|
|
|
|
|
this.B = this.B.Remove(commentIndex);
|
|
|
|
|
|
this.B = System.Text.RegularExpressions.Regex.Unescape(this.B);
|
2021-04-17 18:05:58 -04:00
|
|
|
|
this.B = System.BitConverter.ToString(Encoding.GetEncoding(932).GetBytes(this.B)).Replace("-", string.Empty);
|
2021-02-06 17:43:14 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|