Victor Zverovich
|
5f9574c3c1
|
Add a test case for writing a double to a filled buffer.
|
2014-04-09 08:05:23 -07:00 |
|
jdale88
|
a9862fdb22
|
Fixed some level 4 warnings in VS2013
|
2014-03-11 18:56:24 +00: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 |
|
jdale88
|
45b56c1c62
|
Fixed some places in BasicFormatter where non-templated string types were being used.
See https://github.com/vitaut/format/issues/24
|
2014-02-27 01:28:17 +00:00 |
|
Victor Zverovich
|
86574285cc
|
Don't use CountDigits for 1-2 digit numbers.
|
2014-02-20 21:05:46 -08:00 |
|
Victor Zverovich
|
7abd6443ac
|
Fix more warnings.
|
2014-02-20 08:02:32 -08:00 |
|
Victor Zverovich
|
8c4425a00f
|
Fix warnings.
|
2014-02-20 07:53:50 -08:00 |
|
Victor Zverovich
|
04b3432238
|
Simplify IntTraits.
|
2014-02-20 07:43:37 -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
|
43fe100875
|
Move the implementation of ColorWriter::operator() to format.cc
|
2014-02-19 14:20:26 -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
|
e9b2191689
|
Add a 32-bit version of CountDigits.
|
2014-02-19 12:43:55 -08:00 |
|
Victor Zverovich
|
3017fc6fb7
|
Improve 32-bit integer formatting performance by parameterizing FormatDecimal on integer type.
|
2014-02-17 09:12:24 -08:00 |
|
Victor Zverovich
|
fb2be485d7
|
Fix non-gcc builds.
|
2014-02-15 10:41:00 -08:00 |
|
Victor Zverovich
|
ff0d5d1771
|
Fix more warnings on older GCC.
|
2014-02-15 10:17:10 -08:00 |
|
Victor Zverovich
|
7561ff27e5
|
Fix warnings about unsigned long long as well.
|
2014-02-15 10:02:02 -08:00 |
|
Victor Zverovich
|
7325ebc965
|
Fix the warning about long long on older gcc.
|
2014-02-15 09:58:33 -08:00 |
|
Victor Zverovich
|
245faa745b
|
ConvertWChar -> ConvertChar.
|
2014-02-15 09:39:49 -08:00 |
|
Victor Zverovich
|
eadd2ee421
|
Add FormatInt::data() and document members.
|
2014-02-15 09:39:06 -08:00 |
|
Victor Zverovich
|
f43de4a469
|
Only append terminating '\0' when necessary.
|
2014-02-15 09:24:31 -08:00 |
|
Victor Zverovich
|
430c45d618
|
Too much Python 🐍
|
2014-02-14 14:06:39 -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
|
1f17447fac
|
Simplify pad.
|
2014-01-07 08:44:15 -08:00 |
|
Victor Zverovich
|
8efc8ac075
|
Fixed https://github.com/vitaut/format/issues/15 . Thanks!
|
2014-01-06 17:49:27 -08:00 |
|
Victor Zverovich
|
24fcd6e97f
|
Fix compilation with clang.
|
2014-01-02 12:29:53 -08:00 |
|
Victor Zverovich
|
6038c85231
|
format_test -> format-test. Add support for wide char to BasicWriter.
|
2014-01-02 11:30:28 -08:00 |
|
Victor Zverovich
|
342b76d278
|
Implement pad for wide strings.
|
2014-01-01 10:00:55 -08:00 |
|
Victor Zverovich
|
09f98854bf
|
StrFormatter -> StrFormatSpec.
|
2014-01-01 09:22:55 -08:00 |
|
Victor Zverovich
|
ba6c5fe522
|
IntFormatter -> IntFormatSpec.
|
2014-01-01 09:20:16 -08:00 |
|
Victor Zverovich
|
fec6bc04f5
|
Spec -> EmptySpec. Improve comments.
|
2014-01-01 09:06:25 -08:00 |
|
Victor Zverovich
|
59c5612e87
|
Add comments.
|
2013-12-31 10:15:16 -08:00 |
|
Victor Zverovich
|
641df95491
|
Implement string padding.
|
2013-12-31 09:43:32 -08:00 |
|
Victor Zverovich
|
fbed12ac58
|
Fix warnings.
|
2013-12-13 15:13:14 -08:00 |
|
Victor Zverovich
|
2d485d1916
|
Improve support for C++98 compilers that require a copy ctor when binding a reference to a temporary.
|
2013-12-10 08:08:41 -08:00 |
|
Victor Zverovich
|
21f3a700c5
|
Fix a typo.
|
2013-12-09 17:51:11 -08:00 |
|
Victor Zverovich
|
8ca31c8473
|
Fix compilation on GCC when -std=c++11 is not specified.
|
2013-12-09 17:45:27 -08:00 |
|
Victor Zverovich
|
3d7faaf0bd
|
Detect the availability of initialize lists.
|
2013-12-09 08:31:08 -08:00 |
|
Victor Zverovich
|
bd5fe67eef
|
Conditionally compile C++11 parts.
|
2013-12-09 08:12:33 -08:00 |
|
Victor Zverovich
|
185ec1d91e
|
Fix a typo.
|
2013-12-09 08:12:21 -08:00 |
|
Victor Zverovich
|
e3b4a3f166
|
Disallow formatting of wchar_t when using a char formatter.
|
2013-12-07 08:12:03 -08:00 |
|
Victor Zverovich
|
206c846e12
|
Replace BasicFormatter.Add with args_.push_back.
|
2013-12-07 08:03:23 -08:00 |
|
Victor Zverovich
|
2d620be6ff
|
Pre-allocate space for arguments.
|
2013-12-06 09:16:50 -08:00 |
|
Victor Zverovich
|
5789930096
|
Variadic version of BasicFormatter's ctor.
|
2013-12-06 09:08:37 -08:00 |
|
Victor Zverovich
|
f406a42baa
|
Fix a warning about long long.
|
2013-12-06 07:12:38 -08:00 |
|
Victor Zverovich
|
39cc99e2c2
|
Disable MSVC warning about multiple copy ctors.
|
2013-12-06 07:00:06 -08:00 |
|