Usually string builder is the fastest way to buid string.... but IMHO not in this case. Especialy when darwen uses that loop and conditional assigment ;) ...
No - its starts at 16.Quote:
but if using its default constructor will set its start buffer size at zero
Im not so sure....Quote:
The above case is the most efficient
disregarding the initial decoration of code :D :D , there are 3 temporary strings, one temporary object and 5 copy instructions.
I'm not saying that string builder is slower, but string builder is designed for fast building of large strings.With smaller strings it can be actually slower than concatenting strings with "+".
darwen: Last solution ... looks like it can produce valid output - so for the moment U are a winner! :D
