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
k-hara
25a7917087
Remove parens of single template parameter
2011-08-23 13:20:45 +09:00
k-hara
7ce2c78da1
use assertThrown
2011-08-23 13:20:45 +09:00
k-hara
dcb2f9a6f7
If parsing like integer is succeeded and comparing is failed, it raises overflow error
2011-08-23 13:20:45 +09:00
k-hara
c0f589d557
Fix std.conv.parse!Char(String)
2011-08-23 13:20:43 +09:00
k-hara
2b15effad7
Fix const(bool) parsing.
2011-08-23 13:20:43 +09:00
k-hara
eb618ccd67
std.traits.isIntegral never match any char types.
2011-08-23 13:20:42 +09:00
k-hara
44d9ae3f67
Support parse!dchar(dstring) behave like chomp
2011-08-23 13:20:42 +09:00
k-hara
e669322153
Enable and add unittests for parser.
2011-08-23 13:20:42 +09:00
k-hara
816c58ee29
Fix octal and enable part of its unittest.
...
We have to limit the octal instantiation by its template constraint, not static assert in template body.
2011-08-23 13:20:41 +09:00
k-hara
78f47ee11b
Remove dead code.
2011-08-23 13:20:41 +09:00
k-hara
3790da2ffc
Fix indents.
2011-08-23 13:20:40 +09:00
k-hara
62293b0dd9
Public functions first: octal family.
2011-08-23 13:20:40 +09:00
k-hara
4e0aa77747
Public functions first: text family.
2011-08-23 13:20:40 +09:00
k-hara
e6a4c3ff8f
Move unittests for to!T and parse!T (T = floating point types).
2011-08-23 13:20:39 +09:00
k-hara
c666b94961
Move unittests for to!T and parse!T (T = bool).
2011-08-23 13:20:39 +09:00
k-hara
3f85a819f7
Move unittests for to!T and parse!T (T = integral types).
2011-08-23 13:20:38 +09:00
k-hara
78cd0cc1b2
Remove trailing spaces.
2011-08-23 13:20:38 +09:00
k-hara
8ff9edf63f
Remove duplicate unittests
2011-08-23 13:20:38 +09:00
dsimcha
322876c308
Merge branch 'master' of https://github.com/D-Programming-Language/phobos
2011-08-14 15:01:53 -04:00
dsimcha
994d76fe6f
Add messages to a few asserts to make the auto tester give some details about why they're failing on OS X. This is weird--nothing in these unit tests looks at all platform-specific.
2011-08-14 15:00:40 -04:00
Andrei Alexandrescu
537c59c79e
Merge pull request #178 from jmdavis/deprecation
...
Deprecated stuff which was scheduled to be deprecated in August 2011.
2011-08-14 11:04:21 -07:00
k-hara
117f4f6359
Issue 6377 - std.conv.to should check range when changing signedness
2011-08-13 12:17:23 +09:00
jmdavis
db5051a5af
Changed "Warning" to "Notice" in deprecation messages.
...
Hopefully, they don't get confused with compiler warnings this way.
2011-08-09 00:39:27 -07:00
Andrei Alexandrescu
10556b45c8
Merge pull request #149 from kennytm/bug5547_assertPred_workaround4737
...
Bug 5547: assertPred (workaround bug 4737)
2011-07-20 12:29:07 -07:00
KennyTM~
43a8ad9ab4
Workaround bug 4737, because a typeid is introduced implicitly by the new assert.
2011-07-18 22:44:34 +08:00
KennyTM~
df4e92d712
(Minor cleanup) Change some idiomic GC.malloc usage to uninitializedArray
...
Simplify the common pattern `(cast(T*)GC.malloc(T.sizeof * n, NO_SCAN))[0 .. n]` to the new function `uninitializedArray!(T[])(n)`.
Note that there was some `NO_SCAN` attributes originally determined at runtime using `typeid()`, but now is determined statically using `hasIndirection!()` from the implementation of `uninitializedArray`.
There were also some `GC.malloc` usage looks like `uninitializedArray` in `std.parallelism` but I'm leaving it alone for someone who is more familiar with this module ;).
2011-07-14 04:29:34 +08:00
k-hara
bc8c6190bd
Add author.
2011-07-07 08:28:28 +09:00
k-hara
a58e1cbf84
Collect documentation by 'conversion kind'.
2011-07-07 08:22:11 +09:00