Commit Graph

107 Commits

Author SHA1 Message Date
Victor Zverovich
e3b4a3f166 Disallow formatting of wchar_t when using a char formatter. 2013-12-07 08:12:03 -08:00
Victor Zverovich
383a8423ef Forbid copying from a temporary (Basic)Formatter object. 2013-12-04 22:22:25 -08:00
Victor Zverovich
56f12b737c Add support for long long and more tests for unsigned long long. https://github.com/vitaut/format/issues/9 2013-11-22 07:45:43 -08:00
Victor Zverovich
a1bbd09548 Fix FormatInt test. 2013-11-16 22:03:53 -08:00
Victor Zverovich
4a28216e68 Fix test. 2013-11-16 21:56:28 -08:00
Victor Zverovich
f184ad0a2c Restore the 'B' type by https://github.com/gcflymoto and add tests. 2013-11-16 21:25:48 -08:00
Victor Zverovich
18d07093a0 Test that "#X" adds prefix "0X" (issue https://github.com/vitaut/format/issues/5) 2013-11-16 21:11:42 -08:00
Victor Zverovich
eca62c6ffd Don't use uint64_t in tests. 2013-11-15 14:09:37 -08:00
Victor Zverovich
5e7f59b563 Remove unsigned long long tests for now. Add more tests for binary specifier. 2013-11-14 08:45:50 -08:00
vitaut
e0afc418b3 Merge pull request #4 from gcflymoto/master
Added support for binary modifier
2013-11-14 07:57:16 -08:00
Victor Zverovich
006a4619f3 Replace WIN32 win _WIN32. 2013-11-08 09:56:34 -07:00
Victor Zverovich
d3ec9a1316 Add support for StringRef in BasicFormatter. 2013-11-08 09:53:50 -07:00
Victor Zverovich
00c9fcf1fe Replace CharWriteChecker and WCharWriteChecker with a single WriteChecker template. 2013-11-08 09:48:45 -07:00
Gregory Czajkowski
e4ffc06875 add support for binary type and test long longs more 2013-10-23 20:04:32 -07:00
Victor Zverovich
eded10cf31 Fix FormatInt. 2013-09-10 09:28:04 -07:00
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
8308da46e6 Fix compilation of tests on Windows. 2013-09-09 15:17:38 -07:00
Victor Zverovich
aefb3bb918 Simplify tests. Add support for long long in Writer. 2013-09-09 15:12:51 -07:00
Victor Zverovich
bcef11c0d1 Add support for long double in Writer. 2013-09-08 16:27:12 -07:00
Victor Zverovich
2a9f358d7e Add support for long and unsigned long in Writer. 2013-09-08 14:18:08 -07:00
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