Commit Graph

87 Commits

Author SHA1 Message Date
Victor Zverovich
c2e65d1371 Test and fix writing wide chars. 2013-09-06 19:34:55 -07:00
Victor Zverovich
525de51320 Test and fix writing wide strings. 2013-09-06 19:32:19 -07:00
Victor Zverovich
bc6c1c17cc Add support for wide strings. 2013-09-04 22:03:37 -07:00
Victor Zverovich
ca171307f3 TempFormatter -> Formatter. Complete refactoring. 2013-09-04 19:23:55 -07:00
Victor Zverovich
50cf5e17a7 Merge ArgInserter into TempFormatter and replace BasicFormatter::operator() with BasicWriter::Format. 2013-09-03 18:58:13 -07:00
Victor Zverovich
5978412d5c Test writing strings. 2013-09-03 15:48:17 -07:00
Victor Zverovich
c7f2c658a0 Check if format.h compiles with windows.h included 2013-04-22 07:28:16 -07:00
Victor Zverovich
d3be932534 Handle short and float arguments 2013-03-31 07:01:09 -07: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
e19eceafec Fix MSVC build 2013-02-27 14:51:39 -08:00
Victor Zverovich
478d004c1d Get rid of secure warnings. 2013-02-27 14:45:04 -08:00
Victor Zverovich
8e49d7004b Workaround MSCRT brain damage, take 3. 2013-02-27 14:29:37 -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
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
1b3ac76019 Check that hex and oct don't conflict with IO manipulators. 2013-01-21 10:50:51 -08:00
Victor Zverovich
2ca696d4df Fix the build. 2013-01-13 09:29:37 -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
4f96062c5a Add tests. 2013-01-12 10:08:51 -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
00830b99b3 Document the API using breathe. 2013-01-03 08:57:34 -08:00
Victor Zverovich
4762a8afd0 Format infinity. 2012-12-29 06:44:14 -08:00
Victor Zverovich
ce60483833 Format NaN. 2012-12-28 08:27:54 -08:00
Victor Zverovich
5d4ef3387f Test examples. 2012-12-28 07:18:30 -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
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
84310c3a84 Implement center alignment. 2012-12-24 19:37:50 -08:00
Victor Zverovich
05a4b4fda9 Test formatting of the largest pointer 2012-12-24 12:28:54 -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
a52ae287f1 Fix more MSVC warnings. 2012-12-21 15:55:11 -08:00
Victor Zverovich
c240a129a2 Fix warnings. 2012-12-21 15:02:25 -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
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
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
059934fd10 Rename Active Formatter to TempFormatter. 2012-12-16 20:57:35 -08:00
Victor Zverovich
7e911c1e75 Fix a dumb assert on MSVC. 2012-12-16 15:50:43 -08:00
Victor Zverovich
bd274a3b7a Fix test. 2012-12-16 15:46:06 -08:00