Victor Zverovich
810f42c0c7
Fix util-test on Windows, take 2
2014-09-29 09:59:49 -07:00
Victor Zverovich
55a16eaec7
Fix util-test on Windows
2014-09-29 09:37:33 -07:00
Victor Zverovich
a309c4bbed
Fix posix-test on Windows
2014-09-29 09:28:44 -07:00
Victor Zverovich
dd90129066
Check if type_traits actually work.
2014-09-29 09:15:41 -07:00
Victor Zverovich
d1ded569ff
Separate memory management and formatting
...
Array is split into an abstract Buffer class and a concrete MemoryBuffer class. BasicWriter now does all memory allocation through a Buffer object. Subclasses of BasicWriter may use different buffer types. The new BasicMemoryBuffer class uses the default MemoryBuffer.
2014-09-29 08:48:16 -07:00
Victor Zverovich
b2bd63d2d9
Test ArgList
2014-09-25 09:11:51 -07:00
Victor Zverovich
c2f02df2f5
Fix warning in clang
2014-09-25 07:38:16 -07:00
Victor Zverovich
75a2ea03a7
Reduce code bloat
...
Special case C strings because there is no need to handle size for them. Add support for pre-C++11 compilers to make_type.
2014-09-25 07:10:44 -07:00
Victor Zverovich
ae8bc36e57
MakeArg -> MakeValue
2014-09-24 08:07:50 -07:00
Victor Zverovich
ec1aea34e6
Refactor type processing
2014-09-24 07:48:45 -07:00
Victor Zverovich
ab6e759291
pointer_value -> pointer
2014-09-23 08:21:58 -07:00
Victor Zverovich
d2973766ea
ArgBase -> Value
2014-09-23 08:11:03 -07:00
Victor Zverovich
beb00edf73
Store types in ArgList instead of Arg
2014-09-23 07:59:43 -07:00
Victor Zverovich
49222dc0c7
Improve allocator test
2014-09-23 07:58:23 -07:00
Victor Zverovich
b9a568b1dd
Add support for custom memory allocator to BasicWriter
2014-09-19 07:51:42 -07:00
Victor Zverovich
6a98f42336
Add support for custom allocators
2014-09-18 09:07:40 -07:00
Victor Zverovich
c76b22405d
Replace GTest with GMock (includes GTest)
2014-09-17 08:01:42 -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
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
cb7caa540f
Move FMT_STATIC_ASSERT to header and test.
2014-09-12 12:05:32 -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
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
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
ab35af53c5
Check result of fread.
2014-08-29 06:57:26 -07:00
Victor Zverovich
564da25932
Add ctor & print method to BufferedFile.
2014-08-28 11:53:05 -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
Victor Zverovich
526b7fc91d
Throw exception in parse_nonnegative_int if the number is too big.
2014-08-28 06:42:59 -07:00
Victor Zverovich
da0f7c0a51
Improve error reporting in parse_arg_index.
2014-08-27 09:04:51 -07:00
Victor Zverovich
42de4f1f7d
Get rid of FormatErrorReporter.
2014-08-27 08:24:31 -07:00
Victor Zverovich
8cc0d21124
Move the Crash Reporter fix to Google Test where it belongs.
2014-08-23 10:25:21 -07:00
Victor Zverovich
59a462c67d
Make sure that Crash Reporter is not invoked on death tests.
2014-08-23 10:04:06 -07:00
Victor Zverovich
f9561671cf
Write docs.
2014-08-21 07:30:00 -07:00
Victor Zverovich
da0293c4dd
Add missing include.
2014-08-21 07:29:23 -07:00
Victor Zverovich
03cdf1235a
Test printf.
2014-08-21 07:14:02 -07:00
Victor Zverovich
f1ac0a19e9
Test float.
2014-08-20 08:21:06 -07:00