Commit Graph

1046 Commits

Author SHA1 Message Date
Victor Zverovich
14f2577569 Fix linkage 2014-09-19 08:45:05 -07:00
Victor Zverovich
b9a568b1dd Add support for custom memory allocator to BasicWriter 2014-09-19 07:51:42 -07:00
Victor Zverovich
70205edd6e Fix build with ancient CMake 2014-09-18 09:29:51 -07:00
Victor Zverovich
a734f67978 Check if variadic templates are working 2014-09-18 09:18:18 -07:00
Victor Zverovich
6a98f42336 Add support for custom allocators 2014-09-18 09:07:40 -07:00
Victor Zverovich
a4998accf6 Fix travis build 2014-09-17 08:26:07 -07:00
Victor Zverovich
c76b22405d Replace GTest with GMock (includes GTest) 2014-09-17 08:01:42 -07:00
Victor Zverovich
2938a92d64 Add KBEngine to projects that use cppformat 2014-09-13 08:44:49 -07:00
Victor Zverovich
b54d6e7124 Fix posix-test, take 3. 2014-09-12 18:22:45 -07:00
Victor Zverovich
94daf27c9d Fix posix-test, take 2. 2014-09-12 17:41:04 -07:00
Victor Zverovich
886ad20a9d Remove unused size argument from Array's ctor. 2014-09-12 17:20:36 -07:00
Victor Zverovich
434e83a192 Fix posix-test. 2014-09-12 17:16:22 -07:00
Victor Zverovich
ddd95965e1 Fix MaxSize test. 2014-09-12 16:52:15 -07:00
Victor Zverovich
a3062f6647 Disambiguate a call 2014-09-12 16:18:04 -07:00
Victor Zverovich
352b6ae496 Workaround more Windows crap. 2014-09-12 15:18:11 -07:00
Victor Zverovich
74169e4b5d Add a portable getpagesize() implementation 2014-09-12 13:53:52 -07:00
Victor Zverovich
1e9ca17b9d Workaround Windows crap. 2014-09-12 13:42:22 -07:00
Victor Zverovich
225b757b50 Handy fix for handling of handles. 2014-09-12 12:37:32 -07:00
Victor Zverovich
cb7caa540f Move FMT_STATIC_ASSERT to header and test. 2014-09-12 12:05:32 -07:00
Victor Zverovich
ea9989b254 Add missing include. 2014-09-12 11:57:33 -07:00
Victor Zverovich
949c3c5df4 Test if File::size can handle maximum file size. 2014-09-12 11:12:22 -07:00
Victor Zverovich
e34e9fa0c7 Add File::size and make File's ctor take StringRef. 2014-09-12 10:50:16 -07:00
Victor Zverovich
f175591923 Return size_t instead of streamsize in File::read and File::write
File::read and File::write throw exception on error, so they don't need to return a negative value to indicate error.
2014-09-12 09:38:37 -07:00
Victor Zverovich
6cd9be2c06 Bump version. 2014-09-12 08:29:38 -07:00
Victor Zverovich
3269fce2dc Fix https://github.com/cppformat/cppformat/issues/61 2014-09-12 08:27:23 -07:00
Victor Zverovich
d59fbdcd4a Increase the maximum number of formatting arguments on compilers without variadic templates to 15. 2014-09-11 21:18:36 -07:00
Victor Zverovich
445663fade Fix windows build. 2014-09-05 10:56:00 -07:00
Victor Zverovich
f2c9df8e9f Move safe_strerror to anonymous namespace. 2014-09-05 08:44:41 -07:00
Victor Zverovich
b33d2aa825 Workaround Windows braindamage. 2014-09-05 08:06:07 -07:00
Victor Zverovich
88e0db8486 Test format_error_code. 2014-09-05 08:04:26 -07:00
Victor Zverovich
d4916d9271 Add missing file. 2014-09-05 07:35:00 -07:00
Victor Zverovich
fe9888a1e2 Move implementation tests to format-impl-test. 2014-09-05 07:12:20 -07:00
Victor Zverovich
93bcad6d8e Fix Windows build. 2014-09-03 08:10:20 -07:00
Victor Zverovich
22f75d8b6d Don't throw exceptions from error formatting functions. Gracefully fallback to a less descriptive message instead. 2014-09-03 08:03:05 -07:00
Victor Zverovich
82d4d11c11 format -> cppformat 2014-08-29 09:18:53 -07:00
Victor Zverovich
5debb2aa86 Refactor error reporting to reduce duplication. 2014-08-29 08:16:10 -07:00
Victor Zverovich
605d2600f8 Improve error reporting. 2014-08-29 07:45:55 -07:00
Victor Zverovich
271fa8c908 Improve handling of format strings in custom arguments. 2014-08-29 07:23:54 -07:00
Victor Zverovich
3947a7a98c Move check_sign to anonymous namespace. 2014-08-29 06:57:53 -07:00
Victor Zverovich
ab35af53c5 Check result of fread. 2014-08-29 06:57:26 -07:00
Victor Zverovich
e62354a190 Fix build. 2014-08-28 14:51:01 -07:00
Victor Zverovich
eab0b577f8 Report filename in exception. 2014-08-28 13:42:07 -07:00
Victor Zverovich
e44619707e Fix Windows build. 2014-08-28 12:46:30 -07:00
Victor Zverovich
2dad1690c8 Fix BufferefFile test on Windows. 2014-08-28 12:13:03 -07:00
Victor Zverovich
564da25932 Add ctor & print method to BufferedFile. 2014-08-28 11:53:05 -07:00
Victor Zverovich
108cd1d1a0 Fix anchor. 2014-08-28 10:18:13 -07:00
Victor Zverovich
32344d9b14 Comment 2014-08-28 08:11:21 -07:00
Victor Zverovich
c57d7a506f Factor out argument processing logic common between format and printf to FormatterBase::{next_arg,get_arg}. 2014-08-28 08:05:47 -07:00
Victor Zverovich
56fc525e98 Get rid of FormatterBase::error_. 2014-08-28 07:48:55 -07:00
Victor Zverovich
279c7a6e6a Change "number is too big in format" to "number is too big" because the error can occur not only in the format function. 2014-08-28 06:50:52 -07:00