Commit Graph

36 Commits

Author SHA1 Message Date
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
Victor Zverovich
363352754c Implement runtime precision. 2012-12-12 15:21:11 -08:00
Victor Zverovich
a2a8741348 Fix issues with MSVC. 2012-12-12 10:11:40 -08:00
Victor Zverovich
e8ba960e16 Workaround for missing snprintf in MSVC. 2012-12-12 09:29:50 -08:00
Victor Zverovich
72f896d6b6 Include cctype for isprint. 2012-12-12 09:17:28 -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
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
d599e3b262 Test pointer, c string and character formatting. 2012-12-10 13:30:06 -08:00
Victor Zverovich
d73306bdce Test double formatting. 2012-12-10 12:16:02 -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