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
k-hara
1411d6c210
gotoCatch: Remove flag variable
2012-01-21 00:56:14 +09:00
k-hara
31a8f97423
Issue 7230 - Crash during printing anonymous union with writeln family functions.
2012-01-07 05:25:16 +09:00
Brad Roberts
ea27e2bcd6
enable std.format tests on 64 bit platforms, disabling just the two failing tests instead
2012-01-01 20:57:05 -08:00
Walter Bright
380ae65511
remove empty statements
2011-12-29 00:05:45 -08:00
Torarin
00bfb6873f
Added auto ref to formatElement and formatValue to make them work with non-copyable structs.
2011-12-28 02:05:40 +01:00
David Nadlinger
e312f9898b
Strict @property syntax compliance.
...
This enables the test suite to build with the -property switch enabled.
std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
Peter Alexander
8eb953ef1e
Raw write fix and more appropriate function names.
...
Moved the raw write back into formatValue as it
would cause issues on big endian systems. Also
renamed formatInt to formatIntegral and formatUInt
to formatUnsigned to better signify their purpose.
2011-12-03 13:01:02 +00:00
Peter Alexander
685ebcdaea
Size optimisations on std.format
...
std.format.formatValue was duplicating a lot of
code when formatting various sized, signed and
unsigned ints, so I shuffled the templates around
to re-use more code. For a Hello World program on
OSX x86 this saved me ~7KB.
2011-12-02 20:50:32 +00:00
Dmitry Olshansky
8d6852f221
fix build bug on win32
2011-11-01 01:57:30 +04:00
Brad Roberts
3490d4f1d6
std.format doesn't need std.stdio except in unittests
2011-10-03 00:13:52 -07:00
jmdavis
b9b8337ccd
Renamed UtfException to UTFException to match other uses of UTF.
...
I created an alias for UtfException and scheduled it for deprecation
(with a fairly short time to deprecation given that it's a simple
renaming).
2011-09-26 22:18:18 -07:00
jmdavis
2ecabfce51
Cleaned up std.utf.
...
The main purpose of these changes was to make as much as possible in
std.utf pure (other than toUTFx, which I'll be replacing with toUTF in a
future pull request), but I also ended up doing a fair bit of
documentation cleanup. Almost everything in std.utf is pure now though,
which should help considerably in making it possible to make
string functions pure.
2011-09-26 22:18:18 -07:00
Iain Buclaw
1f30d04488
Move declaration of invalidSeq to correct place.
2011-09-13 23:41:52 +01:00
Iain Buclaw
9fc8498c17
Move code out of catch block, re-add goto in formatElement.
2011-09-13 22:58:39 +01:00
Iain Buclaw
863d7a6ff6
Remove goto into catch block.
2011-09-12 23:22:20 +01:00
k-hara
e34a7debfd
Issue 5371 - ambiguous stringnize of class with alias this
...
By fixing bug 2777, we can implement StringTypeOf more properly.
2011-09-11 11:33:42 +09:00
k-hara
740f3ec78a
Issue 6640 - More formatting consistency between string and range of char
2011-09-11 11:33:40 +09:00
k-hara
2b67942f52
Split formatElement with template constraint, and change it from private to undocumented
2011-09-06 14:36:15 +09:00
k-hara
a1794d2896
Improve union support
2011-09-06 14:35:59 +09:00
k-hara
7d92be6f93
Add ddoc
2011-09-05 13:55:54 +09:00
k-hara
8c72ce5723
Make FormatError an Exception instead of an Error
2011-09-05 12:54:38 +09:00
Andrei Alexandrescu
4361c633c4
Merge pull request #235 from 9rnsr/fix_sink
...
Change toString signature taking sink
2011-09-04 20:12:47 -07:00
k-hara
1673bc594e
fix sink to scope
2011-09-05 09:32:29 +09:00
k-hara
de0a63f5bf
Add trivial fixes.
2011-09-05 09:19:30 +09:00
k-hara
0a06ddec7a
Add associative array unformatting
2011-09-05 09:19:29 +09:00
k-hara
64a3641f40
Fix string unformatting
2011-09-05 09:19:29 +09:00
k-hara
61b430a379
Fix non-string array unformatting
2011-09-05 09:19:29 +09:00
k-hara
4c38fc9ea4
Fix character unformatting
2011-09-05 09:19:29 +09:00
k-hara
22d8f24120
Add boolean value unformatting
2011-09-05 09:19:28 +09:00
k-hara
1e3b2c09f4
Add auxiliary functions for range unformatting
2011-09-05 09:19:28 +09:00
k-hara
833cbabd8c
Fix template constraints
2011-09-05 09:18:49 +09:00
k-hara
925375d79b
Reorder functions
2011-09-05 09:18:49 +09:00
jmdavis
a447bf81cb
Fixed merged conflict.
...
Conflicts:
std/format.d
2011-09-04 12:38:50 -07:00
jmdavis
57249b4378
Adjustments to std.system.
2011-09-03 21:39:35 -07:00