Snippet - Strings

I just posted Strings on Codeshare. Feel free to discuss and make suggestions here.

8 Likes

@ Skewworks - Some globalization couldn’t hurt … but kudos anyway 8)

nice and helpfull collection

i have a little idea for the “SplitComponents” function
the


 s = value.Substring(0, i).Trim();
 value = value.Substring(i + 1);
 

produces a lot of garbage strings. maybe a little bit easier to remeber the start index of a substring and doing something like


 s = value.Substring(lastindex, i).Trim();
lastindex = i;
 

Daniel