Example #1
0
        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));
        }
Example #2
0
        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)));
        }
Example #3
0
		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));
		}
Example #4
0
        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);
        }
Example #5
0
 public void Clear()
 {
     Info = null;
 }
Example #6
0
		public void Clear()
		{
			Info = null;
		}