Implement an IntToString equivalent
authorStephen Toub <stoub@microsoft.com>
Mon, 28 Aug 2017 13:17:23 +0000 (09:17 -0400)
committerStephen Toub <stoub@microsoft.com>
Mon, 28 Aug 2017 16:45:25 +0000 (12:45 -0400)
commit5d3d9c107247369e91745ab9c61760a44324a45d
treed6855031f6b5954e2fae7c3173b6f21a064533c7
parent48ac19343b134dbce1bbb55bdbbaea73197e7b01
Implement an IntToString equivalent

corert doesn't have ParseNumbers, and both corert and coreclr were allocating a new string for the rendered Int32 (corert was also allocating a string of '0's).  Replace this with a non-allocating helper that works in both places just appends directly to the StringBuilder.
src/mscorlib/shared/System/Globalization/TimeSpanFormat.cs