Guest User

Untitled

a guest
Jul 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1.  int AddCount = 0;
  2.                     int Space, Mod;
  3.                     int Next;
  4.  
  5.                     do
  6.                     {
  7.                         Mod = AddCount % Whitespaces.Count;
  8.                         Space = (int)Whitespaces[Mod];
  9.                         line = line.Insert(Space, "S");
  10.                         AddCount++;
  11.  
  12.  
  13.                         for (int SpaceCount = 0; SpaceCount < Whitespaces.Count; SpaceCount++)
  14.                         {
  15.                             Next = (int)Whitespaces[SpaceCount];
  16.  
  17.                             if (Next >= Space)
  18.                             {
  19.                                 Whitespaces.RemoveAt(SpaceCount);
  20.                                 Whitespaces.Insert(SpaceCount, Next + 1);
  21.                             }
  22.                         }
  23.  
  24.                     }
  25.                     while(AddCount <= wrap - line.Length || line.Length < wrap);
Add Comment
Please, Sign In to add comment