k-hara
e5498815a6
Fix word wrapping
2011-09-30 04:43:38 +09:00
k-hara
3f8f781f44
void[] to string conversion never need additional arguments, so scheduled for deprecation
2011-09-30 04:43:37 +09:00
k-hara
4e45814ab4
Revert removing dup/idup optimization from char range to string conversion
2011-09-30 04:43:37 +09:00
k-hara
ad4d627ee7
Keep backward compatibility.
2011-09-30 04:43:37 +09:00
k-hara
de6a8d8dfd
Use formatValue for almost stringnize with to!T().
...
Differences from std.format module:
- void[] stringnize -> like cast expression
- char* stringnize -> like C-string
- typedef value
2011-09-30 04:43:36 +09:00
k-hara
78a2d8abdc
Reduce module dependencies.
2011-09-29 07:09:16 +09:00
k-hara
b0ef1a5508
Add file and line in ConvOverflowException constructor
2011-09-24 12:05:26 +09:00
Andrei Alexandrescu
e51fb3e6da
Merge pull request #270 from 9rnsr/fix6258
...
Issue 6258 - std.conv.to!real("-") fetches the front of an empty array.
2011-09-22 08:06:25 -07:00
k-hara
e1a3962e5b
More descriptive unittest
2011-09-22 22:00:52 +09:00
k-hara
c64c3134da
Use else static
if instead of static if
2011-09-22 21:23:48 +09:00
k-hara
fcacf2060e
More exhaustive test cases
2011-09-22 21:21:53 +09:00
k-hara
5b81181700
Support conversions between class and interface
2011-09-22 21:21:52 +09:00
k-hara
1ef1c5cb7e
Fix wrong spelling
2011-09-22 21:21:52 +09:00
k-hara
659ce6262f
Issue 6288 - std.conv.to removes const/immutable when converting a class
2011-09-22 21:21:52 +09:00
k-hara
48a1f81166
Issue 6258 - std.conv.to!real("-") fetches the front of an empty array.
2011-09-22 21:16:30 +09:00
k-hara
53f3776c92
Issue 6160 - std.conv.to: Ignore _ to match the rest of D
2011-09-20 21:38:02 +09:00
David Simcha
c7c6c8d7bd
Merge pull request #251 from 9rnsr/fix6609
...
Issue 6609 additional Segfault fix.
2011-09-10 08:04:14 -07:00
k-hara
5caaa7a402
Segfault fix.
2011-09-10 23:50:07 +09:00
David Simcha
f281e11ad4
Merge pull request #246 from blackwhale/fix-emplace
...
emplace with classes, also fixes issue 5522
2011-09-10 07:46:17 -07:00
k-hara
c07dc78b12
Issue 6609 - std.conv.parse!Integer should consider sign when radix == 10
2011-09-10 02:15:24 +09:00
Dmitry Olshansky
65a0c2158b
fix for emplace with classes
2011-09-06 20:41:58 +04:00
k-hara
558c3c5469
Consider "statement is not reachable" waring
2011-09-05 18:21:10 +09:00
k-hara
353f310abf
Revert "Revert "Improve error message""
...
This reverts commit 152191c489
.
2011-09-05 18:20:00 +09:00
jmdavis
152191c489
Revert "Improve error message"
...
This reverts commit 8e41c856e1
.
2011-09-05 02:11:08 -07:00
Jonathan M Davis
528a690c55
Merge pull request #238 from 9rnsr/improve_unformat
...
Improve error message
2011-09-05 01:16:20 -07:00
k-hara
8e41c856e1
Improve error message
2011-09-05 14:27:01 +09:00
k-hara
fa9e87b550
Prevent passing rvalue to parse()
2011-09-05 14:11:33 +09:00
k-hara
f1d1a3e720
Split parseElement function by template constraint
2011-09-05 09:19:30 +09:00
k-hara
c979fe4437
Improve error messages
2011-09-05 09:19:30 +09:00
k-hara
c120d5f313
Reduce template instantiation count
2011-09-05 09:19:30 +09:00
k-hara
de0a63f5bf
Add trivial fixes.
2011-09-05 09:19:30 +09:00
k-hara
3ff3c74638
parse family should accept character range at least as source.
2011-09-05 09:18:49 +09:00
k-hara
277d248cb1
parse family should not ignore head white spaces
2011-09-05 09:18:48 +09:00
k-hara
88b678d36b
Indent template constraint.
2011-09-05 09:18:48 +09:00
k-hara
b6735c4f70
Add static array parsing.
2011-09-05 09:18:48 +09:00
k-hara
36c7e51733
Parse array elements as quoted
2011-09-05 09:18:48 +09:00
k-hara
29afc784f3
Add associative array parsing
2011-09-05 09:18:47 +09:00
k-hara
601c75f9c3
Improve parsing error handling
2011-09-05 09:18:47 +09:00
Daniel Murphy
1590a5cc38
Issue 6572 - Deprecate typedef
...
Remove use of deprecated typedef from phobos. This mostly consists of changing typedef to alias, and disabling unittests that require typedef. One change to std.registry is needed to work around a bug in typedef (6571).
2011-08-30 13:22:10 +10:00
k-hara
53842cdc85
Fix std.conv unittest for *nix OS
2011-08-24 10:33:14 +09:00
k-hara
f6a51f4e46
Remove garbage line.
2011-08-23 13:21:50 +09:00
k-hara
7f462099bf
Fix declare and assign to using direct initialization
2011-08-23 13:21:49 +09:00
k-hara
49eaa2b8a3
Braces should be on their lines.
2011-08-23 13:21:49 +09:00
k-hara
cf37e4efb5
Code example indentation is not good.
2011-08-23 13:20:48 +09:00
k-hara
23d727a142
Make some module private functions nested.
2011-08-23 13:20:48 +09:00
k-hara
2cc28322be
strtof, strtod and strtold aren't mainly used in std.conv module.
2011-08-23 13:20:47 +09:00
k-hara
6945f2b5c4
Integrate unittests for to!Float(String)
2011-08-23 13:20:47 +09:00
k-hara
ebfaefd08b
Integrate unittests for to!String(Int)
2011-08-23 13:20:46 +09:00
k-hara
70ac616ab8
Integrate unittests for to!Int(String)
2011-08-23 13:20:46 +09:00
k-hara
36d4d95010
Improve string to non-string conversion.
...
parse!T(str) now supports any string types. So pre-encoding to UTF8 is not necessary.
2011-08-23 13:20:46 +09:00