public static string GetString(this ClilocLNG lng, int index, params string[] args) { if (lng == ClilocLNG.NULL) { lng = DefaultLanguage; } ClilocInfo info = Lookup(lng, index); return(info == null ? String.Empty : info.ToString(args)); }
public ClilocInfo Lookup(GenericReader bin) { bin.Seek(Offset, SeekOrigin.Begin); var data = new byte[Length]; for (long i = 0; i < data.Length; i++) { data[i] = bin.ReadByte(); } return(Info = new ClilocInfo(Language, Index, Encoding.UTF8.GetString(data))); }
public ClilocInfo Lookup(GenericReader bin) { bin.Seek(Offset, SeekOrigin.Begin); var data = new byte[Length]; for (long i = 0; i < data.Length; i++) { data[i] = bin.ReadByte(); } return Info = new ClilocInfo(Language, Index, Encoding.UTF8.GetString(data)); }
public bool IsNullOrWhiteSpace(int index) { if (!Contains(index) || _Table[index] == null) { return(true); } ClilocInfo info = _Table[index].Lookup(InputFile); if (!String.IsNullOrWhiteSpace(info.Text)) { return(false); } return(true); }
public void Clear() { Info = null; }