Commit Graph

225 Commits

Author SHA1 Message Date
Victor Zverovich
aa9a94c8df Fix MSVC build 2013-02-28 11:13:43 -08:00
Victor Zverovich
6afa2994d5 Allocate large enough buffer to make _ecvt_s happy. Swap the order of template parameters in TempFormatter for convenience. 2013-02-28 10:47:20 -08:00
Victor Zverovich
478d004c1d Get rid of secure warnings. 2013-02-27 14:45:04 -08:00
Victor Zverovich
6cc758b6e2 Workaround MSCRT brain damage, take 2. 2013-02-27 14:17:07 -08:00
Victor Zverovich
ab05af06f2 Workaround MSCRT brain damage. 2013-02-27 13:44:00 -08:00
Victor Zverovich
1e58ebf1b7 Fix a crash when exception is throws in nested Format. Check automatically assigned argument index. Add double output method to BasicWriter. 2013-02-27 13:17:09 -08:00
Victor Zverovich
dcb82310eb Fix the build when isinf is a macro. 2013-02-21 17:44:29 -08:00
Victor Zverovich
695bb2f3d4 Fix a compilation issue when math.h is included before format.h 2013-02-21 16:53:58 -08:00
Victor Zverovich
60d51406ef Look for isinf in std namespace too. 2013-02-05 08:11:04 -08:00
Victor Zverovich
b09f371306 Implement a workaround for older GCC. 2013-02-05 08:05:01 -08:00
Victor Zverovich
74494c29cb Fix the build. 2013-02-05 07:49:43 -08:00
Victor Zverovich
9d49321115 Fix MSVC build. 2013-02-05 07:43:15 -08:00
Victor Zverovich
688de77b36 Parameterize Formatter on character type and rename it to BasicFormatter. 2013-02-05 07:28:54 -08:00
Victor Zverovich
03dccc3c91 Rename BasicFormatter to BasicWriter. 2013-02-02 20:29:02 -08:00
Victor Zverovich
687301c516 Parameterize BasicFormatter on char type. 2013-01-26 16:07:28 -08:00
Victor Zverovich
dbfd021ae2 Document the write API. 2013-01-22 11:06:56 -08:00
Victor Zverovich
a1dccea9ba Use one namespace (fmt) instead of two (format and fmt). 2013-01-21 11:42:25 -08:00
Victor Zverovich
f87c6ba358 Fix warnings. 2013-01-13 09:47:01 -08:00
Victor Zverovich
07ad14efdb Simplify traits. 2013-01-13 09:41:14 -08:00
Victor Zverovich
2ca696d4df Fix the build. 2013-01-13 09:29:37 -08:00
Victor Zverovich
41d898e1e4 Use (u)int64_t instead of long. 2013-01-13 08:45:02 -08:00
Victor Zverovich
9fc0574715 Fix the build on MSVC. 2013-01-13 08:37:47 -08:00
Victor Zverovich
de580f6930 Move str and c_str to the fmt namespace and document the API. 2013-01-13 07:50:28 -08:00
Victor Zverovich
aba9e15021 Add support for types other than int in oct, hex, hexu & pad. Document the API. 2013-01-13 07:14:54 -08:00
Victor Zverovich
d53cc2bc12 Fix the build on MSVC. 2013-01-12 10:17:56 -08:00
Victor Zverovich
9e81263cf5 Document the API. 2013-01-12 10:08:39 -08:00
Victor Zverovich
877abaf301 Parameterize integer formatting method on format spec type. Add Sprint/iomanip style formatting methods (oct, hex, hexu, pad). 2013-01-08 09:56:05 -08:00
Victor Zverovich
de17baae2d Move formatting methods to BasicFormat. 2013-01-04 09:14:34 -08:00
Victor Zverovich
8e158d74cd Document the API. 2013-01-04 07:04:35 -08:00
Victor Zverovich
00830b99b3 Document the API using breathe. 2013-01-03 08:57:34 -08:00
Victor Zverovich
5ec28a4914 Use breathe + doxygen for API documentation. 2012-12-29 09:27:26 -08:00
Victor Zverovich
ce60483833 Format NaN. 2012-12-28 08:27:54 -08:00
Victor Zverovich
8412ad6aeb Implement automatic argument indexing. 2012-12-27 06:56:55 -08:00
Victor Zverovich
3f73987a62 Move single argument formatting to BasicFormatter. 2012-12-25 17:55:41 -08:00
Victor Zverovich
17ca809135 Implement space sign. 2012-12-25 13:45:12 -08:00
Victor Zverovich
0a138ad865 Implement minus flag. 2012-12-25 13:25:14 -08:00
Victor Zverovich
d96337914f Make integer formatting faster. 2012-12-25 09:00:11 -08:00
Victor Zverovich
ccbe94189c Implement numeric alignment. Make integer formatting faster. 2012-12-24 08:34:44 -08:00
Victor Zverovich
1b9c22c161 Implement right alignment. 2012-12-22 17:53:13 -08:00
Victor Zverovich
be6e54de36 Implement left alignment. 2012-12-22 14:05:56 -08:00
Victor Zverovich
75343c7e12 Add format to int_generator tests. 2012-12-21 22:50:42 -08:00
Victor Zverovich
64236894ce Parse alignment. 2012-12-21 09:12:04 -08:00
Victor Zverovich
a0d685c710 Implement fill. 2012-12-20 20:10:55 -08:00
Victor Zverovich
30ab349173 Refactor StringRef. 2012-12-19 10:47:00 -08:00
Victor Zverovich
77a5ffa9df Remove extra '>' 2012-12-18 15:50:14 -08:00
Victor Zverovich
2baf6d3030 Implement StringRef. 2012-12-18 15:39:42 -08:00
Victor Zverovich
2ba1573ac3 Introduce str and c_str into the format namespace. 2012-12-18 14:38:03 -08:00
Victor Zverovich
3d9b0f0757 Add ArgInserter::str(). 2012-12-17 21:13:54 -08:00
Victor Zverovich
ade5381f9a Preliminary support for custom formatting. 2012-12-17 14:56:44 -08:00
Victor Zverovich
059934fd10 Rename Active Formatter to TempFormatter. 2012-12-16 20:57:35 -08:00
Victor Zverovich
93a970945e Improve API and make it work on older GCC. 2012-12-16 10:03:19 -08:00
Victor Zverovich
cbaddefddd Forbid copying of ActiveFormat other that from a temporary object. 2012-12-15 20:17:03 -08:00
Victor Zverovich
6861ac4718 Fix the build on GCC 4.2.1 from MacOS X. 2012-12-14 19:01:48 -08:00
Victor Zverovich
363352754c Implement runtime precision. 2012-12-12 15:21:11 -08:00
Victor Zverovich
d6bf6d2708 Workaround a bug in Visual C++. 2012-12-12 09:14:00 -08:00
Victor Zverovich
faccb4c765 Add a license. 2012-12-12 07:44:41 -08:00
Victor Zverovich
33bb6eef5a Enable and fix warnings. 2012-12-11 21:47:05 -08:00
Victor Zverovich
1c8a849229 Fix double action call issue. 2012-12-11 20:49:01 -08:00
Victor Zverovich
e2725eeeb1 ArgFormatter -> Formatter::ArgInserter. Test ArgInserter and ActiveFormatter. 2012-12-11 16:26:04 -08:00
Victor Zverovich
87b5ebfc4a BasicArgFormatter -> ArgFormatter. FullFormat -> ActiveFormatter. Use ActiveFormatter to implement Format and Print. 2012-12-11 13:54:53 -08:00
Victor Zverovich
57dbd2c3fe Rename Buffer to Array and test it. 2012-12-11 12:23:52 -08:00
Victor Zverovich
4db5a66455 Fix a lifetime issue. 2012-12-11 10:27:13 -08:00
Victor Zverovich
b1e4cbb023 Rename ArgFormatter to BasicArgFormatter and ArgFormatterWithCallback to ArgFormatter. 2012-12-11 08:41:06 -08:00
Victor Zverovich
0996e98727 Add comments. 2012-12-10 20:37:35 -08:00
Victor Zverovich
14e0f87d50 Remove back() and Take(); add GrowBuffer(). 2012-12-10 18:08:04 -08:00
Victor Zverovich
198ebe9cf6 Add a Buffer that stores initial data on stack. 2012-12-10 17:16:08 -08:00
Victor Zverovich
31a507034e Implement an escape mechanism. 2012-12-10 15:04:55 -08:00
Victor Zverovich
b98b2e9842 Implement formatting of integers. 2012-12-10 11:08:16 -08:00
Victor Zverovich
bbd13a492b Test precision. 2012-12-09 14:13:23 -08:00
Victor Zverovich
095b43a8f0 Test and correct handling of the width specifier. 2012-12-09 11:32:39 -08:00
Victor Zverovich
280ea8b5c5 Add support for user-defined types. 2012-12-09 09:03:47 -08:00
Victor Zverovich
8b1c7098ec More tests. 2012-12-08 18:45:35 -08:00
Victor Zverovich
63539c03b0 Check for overflow when parsing argument index. Improve error handling. Fix overload issues. More tests. 2012-12-08 08:17:12 -08:00
Victor Zverovich
5f3ed207da Add more tests. Check if argument index is in range. 2012-12-07 17:48:10 -08:00
Victor Zverovich
b076df4f80 Initial import 2012-12-07 08:31:09 -08:00