Commit Graph

62 Commits

Author SHA1 Message Date
Victor Zverovich
58a2f4f425 Test error reporting in UTF16ToUTF8. 2014-05-01 07:06:35 -07:00
Victor Zverovich
f3a86e83fe Fix test. 2014-04-30 13:34:52 -07:00
Victor Zverovich
d35411817e Fix test. 2014-04-30 13:28:05 -07:00
Victor Zverovich
d3b1783647 Fix test. 2014-04-30 13:02:53 -07:00
Victor Zverovich
0bece94257 Fix test. 2014-04-30 12:39:31 -07:00
Victor Zverovich
400812a905 CError -> WinError 2014-04-30 12:38:17 -07:00
Victor Zverovich
c7eba007cc Fix MSVC build. 2014-04-30 11:47:16 -07:00
Victor Zverovich
89a8aaf502 Fix UB. 2014-04-30 11:29:33 -07:00
Victor Zverovich
f68d329d24 Fix warning. 2014-04-30 11:22:20 -07:00
Victor Zverovich
99e6112fda Fix StrError, move Format*ErrorMessage to the implementation. 2014-04-30 11:20:41 -07:00
Victor Zverovich
a1a84df7a4 More tests. 2014-04-30 10:53:55 -07:00
Victor Zverovich
c8e2b474e8 Fix test. 2014-04-30 10:46:12 -07:00
Victor Zverovich
f79398699b Add ThrowCError to throw an exception on C library errors. 2014-04-30 10:18:11 -07:00
Victor Zverovich
2c6372d790 Add a portable thread-safe version of strerror. 2014-04-30 09:42:48 -07:00
Victor Zverovich
5019b6b0f4 Fix tests, take 2. 2014-04-30 07:46:16 -07:00
Victor Zverovich
ba571064e7 Fix tests. 2014-04-30 07:44:41 -07:00
Victor Zverovich
c16217bf9b Test UTF8ToUTF16 and UTF16ToUTF8. 2014-04-30 07:38:43 -07:00
Victor Zverovich
859a4975f6 Throw SystemError if fwrite fails. 2014-04-30 06:55:21 -07:00
Victor Zverovich
063d0077b3 Test FileSink. Simplify tests. 2014-04-29 08:39:37 -07:00
Victor Zverovich
48be5c22a2 Test "move". 2014-04-29 07:58:20 -07:00
Victor Zverovich
e00409c517 Comment. 2014-04-29 07:49:46 -07:00
Victor Zverovich
98e4447b46 Use locally defined open. 2014-04-29 06:10:58 -07:00
Victor Zverovich
710725ea9d Fix implementation of open on windows. 2014-04-29 06:00:01 -07:00
Victor Zverovich
7ad88eff13 Fix a warning. 2014-04-29 05:54:36 -07:00
Victor Zverovich
11b3b5128e Fix test when the output file exists. 2014-04-28 20:04:59 -07:00
Victor Zverovich
e3063a5902 Fix test. 2014-04-28 19:33:45 -07:00
Victor Zverovich
9514da06e7 Fix test. 2014-04-28 19:27:41 -07:00
Victor Zverovich
d9db89814f Refactor action classes, Action -> Sink, add comments. 2014-04-28 08:59:29 -07:00
Victor Zverovich
83a7b79c2d Add a macro to disallow the copy constructor and operator= functions. 2014-04-27 09:46:56 -07:00
Victor Zverovich
5dee290482 Fix warnings. 2014-04-27 07:16:17 -07:00
Victor Zverovich
8d28a2382b Fix MSVC build. 2014-04-27 07:09:53 -07:00
Victor Zverovich
8641461c98 More tests. 2014-04-27 06:56:12 -07:00
Victor Zverovich
0b307248a6 Fix warning. 2014-04-26 10:09:35 -07:00
Victor Zverovich
f6baab5c27 Fix warning. 2014-04-26 10:00:29 -07:00
Victor Zverovich
f153f6f4b5 Implement move assignment in BasicWriter. 2014-04-26 07:10:21 -07:00
Victor Zverovich
515fd5218a Test move assignment in Array. 2014-04-26 06:49:22 -07:00
Victor Zverovich
26277c8ab3 Implement move assignment operator for Array. 2014-04-25 08:18:07 -07:00
Victor Zverovich
08b0741fa7 Add move ctor to BasicWriter. 2014-04-25 07:40:37 -07:00
Victor Zverovich
4c84eb18b6 Test Array's move ctor. 2014-04-24 08:15:32 -07:00
Victor Zverovich
71a5b7a126 Return Writer instead of std::string in variadic overloads of Format for performance & consistency with non-variadic versions. 2014-04-24 07:32:01 -07:00
Victor Zverovich
1104e73242 Don't use initializer lists. 2014-04-22 19:42:25 -07:00
Victor Zverovich
656ca25177 Add example. 2014-04-20 08:46:24 -07:00
Victor Zverovich
107a184a81 Fix test. 2014-04-17 19:20:54 -07:00
Victor Zverovich
a07b51f7df Conditionally compile part of a test that uses C++11. 2014-04-17 19:18:11 -07:00
Victor Zverovich
7f622c118d Test example. 2014-04-17 18:28:45 -07:00
Victor Zverovich
648dba0a78 Check output. 2014-04-09 08:27:51 -07:00
Victor Zverovich
5f9574c3c1 Add a test case for writing a double to a filled buffer. 2014-04-09 08:05:23 -07:00
jdale88
17d621f86f Added variadic versions for Format that act as a proxy for providing an initialiser list to a BasicFormatter.
Updated the Variadic test to use these new functions and verified that the tests passed.

See https://github.com/vitaut/format/issues/25
2014-03-06 20:06:44 +00:00
Victor Zverovich
86574285cc Don't use CountDigits for 1-2 digit numbers. 2014-02-20 21:05:46 -08:00
Victor Zverovich
90d0c50eb3 Fix formatting of integer types smaller than int in FormatDec. 2014-02-20 07:04:54 -08:00