Пример #1
0
        public override string Encode(string str)
        {
            var shifts = new List <string>(Bw.GetShiftsOf(str));

            shifts.Sort();
            var position = Bw.GetIndexOf(str, shifts);

            return(Rle.Transform(shifts, position).ToString());
        }