Skip to main content
4 events
when toggle format what by license comment
Sep 13, 2016 at 20:11 history edited pinkfloydx33 CC BY-SA 3.0
added 169 characters in body
Sep 13, 2016 at 19:48 comment added pinkfloydx33 Trim() will trim from the start as well, which I believe wouldn't be valid. I also was originally doing the loading into s[0] and I had int i; outside of the loop (to reuse it in the return) which I believe ultimately added bytes
Sep 13, 2016 at 19:43 comment added milk Shouldn't Trim() work instead of TrimEnd()? Even better, I think you can save a lot of bytes by using s[0] as the output var and using return new string(s[0],0,i) where i is the index of the last code character. That idea may require two for loops instead of the foreach, I'll think about it more and try to write actual code later today.
Sep 13, 2016 at 14:01 history answered pinkfloydx33 CC BY-SA 3.0