Commit Graph

74 Commits

Author SHA1 Message Date
Victor Zverovich
b605b3980c Disallow writing a wide string to a char stream and vice versa, because there is no good way to implement these function without knowing the encodings and what std::ostream doesn't make any sense. 2013-09-09 22:21:40 -07:00
Victor Zverovich
65d47e5e09 Add FormatInt for fast stand-alone integer formatting. 2013-09-09 06:51:03 -07:00
Victor Zverovich
c62c475291 Fix a warning. 2013-09-08 14:25:22 -07:00
Victor Zverovich
563a575c0c Fix more warnings. 2013-09-08 13:47:06 -07:00
Victor Zverovich
88972f487b Fix warnings. 2013-09-08 13:30:14 -07:00
Victor Zverovich
93e4125248 Move DIGITS to the implementation. Widen fill_ to support both char and wchar_t. 2013-09-08 13:07:04 -07:00
Victor Zverovich
0fc73164eb Fix warnings. 2013-09-07 12:52:52 -07:00
Victor Zverovich
9ff3b97779 Move more code from header to source. 2013-09-07 10:15:08 -07:00
Victor Zverovich
7cae763c91 Move code from header to source. 2013-09-06 20:23:42 -07: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
fbfedcf0ac Fix the issue with signbit in C++11. 2013-01-14 15:16:20 -08:00
Victor Zverovich
3c90a8736b Fix the build. 2013-01-12 10:08:16 -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
251e8774b0 Fix the build on MSVC. 2012-12-29 09:54:57 -08:00
Victor Zverovich
4762a8afd0 Format infinity. 2012-12-29 06:44:14 -08:00
Victor Zverovich
529045b65d Fix the build. 2012-12-28 09:41:03 -08:00
Victor Zverovich
7b970285da Fix the build. 2012-12-28 09:24:06 -08:00
Victor Zverovich
10108c75a5 Implement signbit for MSVC. 2012-12-28 09:08:29 -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
73f13eeb5b Implement '#' flag. 2012-12-25 18:19:51 -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
0f46a3df6a Fix the build. 2012-12-25 13:30:42 -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
84310c3a84 Implement center alignment. 2012-12-24 19:37:50 -08:00
Victor Zverovich
4d1ee0bb5b Fix a warning. 2012-12-24 18:19:33 -08:00
Victor Zverovich
995d01a6fa Fix a warning. 2012-12-24 12:14:26 -08:00
Victor Zverovich
26d2ae6281 Fix compilation on pre C++11. 2012-12-24 11:58:49 -08:00
Victor Zverovich
100149eb58 Fix compilation on pre C++11. 2012-12-24 11:41:20 -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
516137657e Disable MSVC warnings. 2012-12-21 15:43:10 -08:00
Victor Zverovich
2dc1c0bb30 Fix a warning. 2012-12-21 15:31:41 -08:00
Victor Zverovich
c240a129a2 Fix warnings. 2012-12-21 15:02:25 -08:00
Victor Zverovich
90986824a4 Fix tests. 2012-12-21 09:18:09 -08:00
Victor Zverovich
f28ecafe01 Fix the build. 2012-12-21 09:14:18 -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
1b3c197bff Check for null string pointer. 2012-12-17 16:39:49 -08:00
Victor Zverovich
f8c9106d67 Prevent potential warnings about macro redefinitions. 2012-12-17 15:41:00 -08:00
Victor Zverovich
ade5381f9a Preliminary support for custom formatting. 2012-12-17 14:56:44 -08:00
Victor Zverovich
1dc0cc3b80 Fix a dumb assert on MSVC. 2012-12-16 15:56:44 -08:00
Victor Zverovich
d53f209626 Disable "secure" warnings in format.cc too. 2012-12-16 15:06:31 -08:00