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
k-hara
665cc00fb6
Add comma
2011-09-04 13:29:20 +09:00
k-hara
b33f032191
Add keySeparator into FormatSpec for associative array formatting.
2011-09-04 13:26:26 +09:00
k-hara
21e0c4240c
Add character escaping.
2011-09-04 13:26:26 +09:00
k-hara
bbb00a04d1
Escape non-graphical or invalid code points
2011-09-04 13:26:25 +09:00
k-hara
e93d6713b2
Issue 5237 - writefln doesn't respect Complex.toString
...
Add string quotation and escaping feature.
2011-09-04 13:26:25 +09:00
k-hara
7c4e99ccc7
Nested range output is now allowed.
2011-09-04 13:26:24 +09:00
k-hara
b6ec9947a2
Add union support (toString or error message in compile time).
2011-09-04 13:26:24 +09:00
k-hara
a9844d223a
The parameter 'ref FormatSpec!Char f' shouldn't change. If you want, copy it.
2011-09-04 13:26:23 +09:00
k-hara
180bb66014
Reduce inconsistent of Non-string range formatting.
...
Empty range is now formatted like "[]", not "".
2011-09-04 13:26:23 +09:00
k-hara
b08e7c9995
Merge formatValue documents for class and interface.
2011-09-04 13:26:23 +09:00
k-hara
95c16dc075
Issue 3890 - Bad writeln of a nested struct
2011-09-04 13:26:22 +09:00
k-hara
d45b340e98
Improve AssociativeArray formatting.
2011-09-04 13:26:22 +09:00
k-hara
36faf92bd8
Fix word wrapping.
2011-09-04 13:26:21 +09:00
Andrei Alexandrescu
711f7e2e84
Merge pull request #225 from yebblies/issue5825
...
Issue 5825 - write is calling a deprecated function
2011-09-03 06:44:19 -07:00
k-hara
bbd78b33d5
FormatError should take file and line
2011-09-02 20:56:39 +09:00
k-hara
bb9d9823fa
Reduce FormatSpec instantiation
2011-09-02 20:56:39 +09:00