Jonathan M Davis
53581e7a45
Merge pull request #573 from 9rnsr/disable_auto_escape
...
Support %-( ... %) and add documentation.
2012-06-05 22:30:47 -07:00
k-hara
064a2c5015
fix Issue 8186 - Formatting class object has an alias this to int* field is broken.
2012-06-02 19:04:33 +09:00
Hara Kenji
3115e61d28
Merge pull request #576 from 9rnsr/fix8015
...
Issue 8015 - std.typecons.Tuple does not support struct with alias method this
2012-05-28 12:04:26 -07:00
k-hara
f5ccd7fdab
Retry to fix Issue 7348 - Format and unformat typeof(null) objects properly
...
We should represent null literal as "null" instead of "" in formatting, because unformatting requires one or more length string representation of the object.
2012-05-23 13:01:50 +09:00
k-hara
0320e5bd1c
fix Issue 8015 - std.typecons.Tuple does not support struct with alias method this
2012-05-13 01:15:51 +09:00
k-hara
038daa5b03
Remove redundant constraints
2012-05-12 20:06:29 +09:00
Hara Kenji
c27262cdb9
Merge pull request #536 from Aatch/std-format-changes
...
Std format changes
2012-05-12 02:52:19 -07:00
k-hara
8362970a56
Small fix for documentation.
2012-05-12 01:21:33 +09:00
k-hara
947ff51007
Support %-( ... %) and add documentation.
2012-05-08 10:07:37 +09:00
Denis Shelomovskij
4430ee9a47
fix Issue 7975 - Incorrect quotes escaping in std.format
2012-04-23 19:45:22 +04:00
Andrei Alexandrescu
1b75b2b289
Merge pull request #231 from 9rnsr/fix6595
...
Issue 6595 - std.string.format() and sformat() are obsolete
2012-04-21 09:59:07 -07:00
James Miller
03673b188f
Fixed up code
2012-04-20 19:09:32 +12:00
James Miller
ad092c3238
Fixed up singleSpec Documentation
2012-04-13 21:07:33 +12:00
James Miller
867d5e29d3
Adds singleSpec to std.format
...
Adds a helper function for geting the format spec for a single format
specifier
2012-04-13 20:58:55 +12:00
James Miller
cda3c079ee
Improvements to std.format documentation
2012-04-13 20:12:12 +12:00
k-hara
9e37c2aecc
fix Issue 7869 - Cannot format pointer of struct has toString member function
2012-04-09 14:32:23 +09:00
k-hara
affd4922f2
formattedWrite and formattedRead returns the number of formatted arguments
2012-04-09 02:13:00 +09:00
Andrei Alexandrescu
9273c74aa8
Merge branch 'master' of github.com:D-Programming-Language/phobos
2012-03-27 20:11:25 -06:00
H. S. Teoh
5f03c6b75d
Add spacing to make example array output nicer.
2012-03-24 15:49:01 -07:00
H. S. Teoh
a27d82dc27
Document %( %| %) array formatting specifiers.
...
With juicy examples from Kenji Hara. :-)
2012-03-24 12:06:57 -07:00
Andrei Alexandrescu
b90e2835eb
Merge pull request #488 from 9rnsr/fix_aliasthis_fmt
...
std.format improvement for alias this type interaction
2012-03-22 22:49:32 -07:00
Andrei Alexandrescu
31111228e5
Typos - thanks Paul D. Anderson
2012-03-17 11:37:22 -05:00
Don Clugston
94b7a1a3c7
Supplemental change required by 6681
...
A unittest in std.format has been relying on a CTFE bug.
Setting one field of a union, and then reading from another, is not
currently supported in CTFE.
2012-03-12 18:53:59 +01:00
k-hara
0f0875021b
Fix std.format for the interaction with alias this
2012-03-12 16:00:00 +09:00
David Herberth
1c1e5887b2
added tests for bug 7628
2012-03-08 22:51:05 -08:00
David Herberth
7e92b35efa
fixed formatValue conflict
2012-03-08 22:51:05 -08:00
k-hara
dd89d37fd2
Eliminate code duplication
2012-03-08 22:51:05 -08:00
k-hara
12571977d8
fix Issue 6892 - Formatted write with specified length of enum member
2012-03-08 22:51:04 -08:00
David Nadlinger
fa5250874c
Better pointer format specifier mismatch message.
...
Fixes issue 7480.
2012-02-11 06:50:48 +01:00
Brad Anderson
261d804f0c
Appender is in std.array, not std.range
2012-01-30 01:50:07 -07:00
k-hara
526469a0fc
Issue 7241 - std.format can't read into array of dchar
2012-01-29 21:25:23 +09:00
k-hara
2dcd458b95
Remove workaround for CTFE.
2012-01-22 21:21:31 +09:00
k-hara
bc77d85ff3
The braces should be on its own line.
2012-01-22 21:21:20 +09:00
k-hara
1f228eadcf
Replace enforce(false, ...) to throw statement.
2012-01-22 21:18:01 +09:00
k-hara
13d761a85a
Fix comment
2012-01-22 21:09:37 +09:00
k-hara
cf6f608982
Use enforceEx instead enforce.
2012-01-22 21:06:21 +09:00
k-hara
d76b0e96dd
Change manifest constant types from const(Char)[] to immutable(Char)[].
2012-01-22 20:35:02 +09:00
k-hara
e7753a4789
CTFEable formatting
2012-01-21 00:56:38 +09:00
k-hara
322addb58e
Use enforce
2012-01-21 00:56:38 +09:00
k-hara
6c80a510af
Update for reflective formatting
2012-01-21 00:56:37 +09:00
k-hara
53c4dcc70f
Add test for reflective formatting
2012-01-21 00:56:17 +09:00
k-hara
49b220321f
Cleanup unit tests more functionally.
2012-01-21 00:56:16 +09:00
k-hara
010a94fc45
Mutable global variables in FormatSpec are not useful
2012-01-21 00:56:16 +09:00
k-hara
fe886cdb15
Cleanup AA formatting
2012-01-21 00:56:16 +09:00
k-hara
a1a4ee5309
Add support %( ... %| ... %)
2012-01-21 00:56:16 +09:00
k-hara
28a252616f
Update ddoc
2012-01-21 00:56:16 +09:00
k-hara
51d02fce7c
Issue 5354 - formatValue: range templates introduce 3 bugs related to class & struct cases
2012-01-21 00:56:16 +09:00
k-hara
3556d6323b
Cleanup formatValue specializations
2012-01-21 00:56:15 +09:00
k-hara
8a87a161d0
Reorder definitions
...
formatValue and unformatValue use same order with template specialization.
2012-01-21 00:56:15 +09:00
k-hara
3578f189b0
Add support for val.toString(sink)
2012-01-21 00:56:15 +09:00