public static List <string> getStringBrokenIntoSectionsOfHeight(string s, int width, int height) { List <string> list = new List <string>(); while (s.Length > 0) { string stringPreviousToThisHeightCutoff = SpriteText.getStringPreviousToThisHeightCutoff(s, width, height); if (stringPreviousToThisHeightCutoff.Length <= 0) { break; } list.Add(stringPreviousToThisHeightCutoff); s = s.Substring(list.Last <string>().Length); } return(list); }
// Token: 0x0600132D RID: 4909 RVA: 0x00182204 File Offset: 0x00180404 public static List <string> getStringBrokenIntoSectionsOfHeight(string s, int width, int height) { List <string> brokenUp = new List <string>(); while (s.Length > 0) { string tmp = SpriteText.getStringPreviousToThisHeightCutoff(s, width, height); if (tmp.Length <= 0) { break; } brokenUp.Add(tmp); s = s.Substring(brokenUp.Last <string>().Length); } return(brokenUp); }
public static List <string> getStringBrokenIntoSectionsOfHeight(string s, int width, int height) { List <string> source = new List <string>(); for (; s.Length > 0; s = s.Substring(source.Last <string>().Length)) { string thisHeightCutoff = SpriteText.getStringPreviousToThisHeightCutoff(s, width, height); if (thisHeightCutoff.Length > 0) { source.Add(thisHeightCutoff); } else { break; } } return(source); }