Пример #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));
        }
Пример #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)));
        }
Пример #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));
		}
Пример #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);
        }
Пример #5
0
 public void Clear()
 {
     Info = null;
 }
Пример #6
0
		public void Clear()
		{
			Info = null;
		}