Commit Graph

48 Commits

Author SHA1 Message Date
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
Victor Zverovich
6968ef3bb3 Implement PrintColored.
Thanks https://github.com/jose55 for the idea.
2014-02-19 13:51:23 -08:00
Victor Zverovich
9bb93992b6 Fix a warning. 2014-02-19 13:05:50 -08:00
Victor Zverovich
e9b2191689 Add a 32-bit version of CountDigits. 2014-02-19 12:43:55 -08:00
Victor Zverovich
6f6fe519e2 Fix more warnings. 2014-02-15 11:16:44 -08:00
Victor Zverovich
eadd2ee421 Add FormatInt::data() and document members. 2014-02-15 09:39:06 -08:00
Victor Zverovich
6f0387fc22 Expose in-place decimal integer formatting via FormatDec. Improve performance of CountDigits based on the results from https://github.com/localvoid/cxx-benchmark-count-digits. 2014-02-14 10:36:17 -08:00
Victor Zverovich
d473a79581 Add FormatInt::size, and support for long and long long. 2014-02-13 09:59:49 -08:00
Victor Zverovich
bfedba5a0a Add support for int64_t in FormatInt. 2014-01-30 08:02:06 -08:00
Victor Zverovich
c3f5dce8d5 Fixed bug https://github.com/vitaut/format/issues/16 . Thanks to https://github.com/fil222 ! 2014-01-28 12:49:36 -08:00
Victor Zverovich
ea5dce3957 Simplify format specs. 2014-01-28 12:47:37 -08:00
Victor Zverovich
a1bd3358bb Produce a compile error when using wide fill character on a narrow stream. 2014-01-08 08:17:38 -08:00
Victor Zverovich
6038c85231 format_test -> format-test. Add support for wide char to BasicWriter. 2014-01-02 11:30:28 -08:00