Ejemplo n.º 1
0
        public IEnumerable <ANSIString> Split(char separator)
        {
            int index = 0, newIndex = 0;
            var sep = new ANSIChar(separator);

            do
            {
                newIndex = _String.IndexOf(sep, index);
                if (newIndex < 0)
                {
                    var endstr = new ANSIString();
                    endstr._String.AddRange(_String.Skip(index));
                    yield return(endstr);

                    break;
                }

                var first = index;
                index = _String.IndexOf(sep, index);

                var str = new ANSIString();
                str._String.AddRange(_String.Skip(first).Take(index < 0 ? _String.Count - first : index - first));
                yield return(str);
            }while (index >= 0);
        }
Ejemplo n.º 2
0
 public bool Remove(ANSIChar item)
 {
     return(((IList <ANSIChar>)_String).Remove(item));
 }
Ejemplo n.º 3
0
 public bool Contains(ANSIChar item)
 {
     return(((IList <ANSIChar>)_String).Contains(item));
 }
Ejemplo n.º 4
0
 public void Add(ANSIChar item)
 {
     ((IList <ANSIChar>)_String).Add(item);
 }
Ejemplo n.º 5
0
 public void Insert(int index, ANSIChar item)
 {
     ((IList <ANSIChar>)_String).Insert(index, item);
 }
Ejemplo n.º 6
0
 public int IndexOf(ANSIChar item)
 {
     return(((IList <ANSIChar>)_String).IndexOf(item));
 }