Updating Folly Formatting's use of separators for Decimal Integers 'd' and Numbers 'n'
authorJohn Ehrhardt <ehrhardt@fb.com>
Thu, 26 Feb 2015 04:52:21 +0000 (20:52 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:30:10 +0000 (19:30 -0800)
commit74651ade10a241046ff85206acf77010edffc039
treee9b2136c28d75a3ae542cfd33b058393ddda60d7
parent1cb4f91b8870c5dd1dfb7ac515f081a522b19be8
Updating Folly Formatting's use of separators for Decimal Integers 'd' and Numbers 'n'

Summary:
Updating Folly Formatting's use of separators for Decimal Integers 'd' and Numbers 'n'.
Updated Decimal Integers 'd' use of separators to directly use commas ',' and grouping of 3 digits.
Updated Numbers use of separators and grouping to follow locale settings.

Test Plan:
Wrote unit tests to validate the insertion of thousandsSeparators works.
Note that the numbers unit test does not modify the locale since the test cases are not thread safe.

Reviewed By: lesha@fb.com

Subscribers: tudorb, trunkagent, folly-diffs@, yfeldblum, aric

FB internal diff: D1821156

Tasks: 6087521

Signature: t1:1821156:1424923837:d0fb383a07fd733375b72b1905e6112afa141265
folly/Format-inl.h
folly/Format.cpp
folly/test/FormatTest.cpp