You've already forked sceWork
mirror of
https://github.com/lifebottle/sceWork.git
synced 2026-02-13 15:16:05 -08:00
26 lines
796 B
C#
26 lines
796 B
C#
using System.Text;
|
|
|
|
namespace sceWork
|
|
{
|
|
public class tableEntry
|
|
{
|
|
public string A;
|
|
public string B;
|
|
|
|
public tableEntry(string str)
|
|
{
|
|
str = str.Replace(" ", "");
|
|
str = str.Replace("\t", "");
|
|
int startIndex = str.IndexOf('=');
|
|
|
|
this.A = str.Remove(startIndex);
|
|
this.A = this.A.ToUpper();
|
|
this.B = str.Remove(0, startIndex + 1);
|
|
int commentIndex = this.B.IndexOf(';');
|
|
if (commentIndex > 0)
|
|
this.B = this.B.Remove(commentIndex);
|
|
this.B = System.Text.RegularExpressions.Regex.Unescape(this.B);
|
|
this.B = System.BitConverter.ToString(Encoding.GetEncoding(932).GetBytes(this.B)).Replace("-", string.Empty);
|
|
}
|
|
}
|
|
} |