Exemple #1
0
        public void Flip()
        {
            StringTheory theory = new StringTheory(this);

            this.Erase();
            while (!theory.IsEmpty())
            {
                this.Push(theory.Pop());
            }
            this.touch();
        }
Exemple #2
0
 public void Format(string FormatString)
 {
     if (FormatString.Length > 0)
     {
         StringTheory theory  = new StringTheory();
         StringTheory theory2 = new StringTheory(this);
         theory2.Flip();
         for (int i = 0; i < FormatString.Length; i++)
         {
             if (FormatString[i] == '#')
             {
                 theory.Push(theory2.Pop());
             }
             else
             {
                 theory.Push(FormatString[i]);
             }
         }
         base.Renew(theory);
     }
 }
Exemple #3
0
 public void Flip()
 {
     StringTheory theory = new StringTheory(this);
     this.Erase();
     while (!theory.IsEmpty())
     {
         this.Push(theory.Pop());
     }
     this.touch();
 }
Exemple #4
0
 public void Format(string FormatString)
 {
     if (FormatString.Length > 0)
     {
         StringTheory theory = new StringTheory();
         StringTheory theory2 = new StringTheory(this);
         theory2.Flip();
         for (int i = 0; i < FormatString.Length; i++)
         {
             if (FormatString[i] == '#')
             {
                 theory.Push(theory2.Pop());
             }
             else
             {
                 theory.Push(FormatString[i]);
             }
         }
         base.Renew(theory);
     }
 }