k-hara
89917c64bf
Remove shedding top const, because it is automatically done in IFTI.
2012-01-24 00:45:05 +09:00
k-hara
aab5f6e41d
Add parse function with radix
2012-01-24 00:39:23 +09:00
k-hara
1ba8ecceeb
Issue 6255 - Add support for different base conversions in std.conv
2012-01-24 00:30:09 +09:00
Jonathan M Davis
59d53d15d7
Merge pull request #298 from 9rnsr/improve_format
...
Cleanup and improve std.format
2012-01-22 18:15:48 -08:00
Richard Webb
dc36a288b9
fix spelling: inttegral -> integral
2012-01-21 21:24:24 +00:00
k-hara
6c80a510af
Update for reflective formatting
2012-01-21 00:56:37 +09:00
Nils Boßung
8f2137bf95
fix oversights
2012-01-19 09:21:12 +01:00
Nils Boßung
6ca6e3216c
documentation
2012-01-19 09:05:02 +01:00
Nils Boßung
b92a2c451f
make parse() error messages not include the full input
...
Including the full input is not feasible with non-forward ranges.
And with infinite ranges it leads to an infinite loop.
2012-01-19 09:04:47 +01:00
Nils Boßung
b1c121dbb0
let parse() with radix throw on empty input
2012-01-19 09:00:51 +01:00
Nils Boßung
10d636b7b3
make parse with radix work on ranges (bugzilla 7302)
2012-01-17 12:57:40 +01:00
jmdavis
60a0a1c9e7
Deprecated stuff that was scheduled for deprecation in January 2012.
2012-01-02 22:52:36 -08:00
k-hara
7dcb93621d
Supplemental change of issue 3382 - [tdpl] Implement uniform function call syntax
2011-12-26 22:57:49 +09: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
David Simcha
063e53c7c3
Merge pull request #332 from dawgfoto/FixEmplace
...
fix bug in emplace
2011-12-02 19:32:18 -08:00
k-hara
7db94dbc90
Issue 7055 - to!float("INF2") == 2
2011-12-03 11:27:58 +09:00
dawg
4c4f521d6b
fix bug in emplace
...
- need to slice buffer if it's bigger than the classInstanceSize
2011-11-26 17:01:33 +01:00
jmdavis
b4751aae0b
Deprecated overloads for std.conv.to which use typedef.
2011-11-20 05:19:00 -08:00
jmdavis
1d54bfafb9
Removed typedef tests in std.conv.
...
Now that typedef has been deprecated, having it in std.conv's tests
results in any code which imports std.conv and builds with -unittest
having to build with -d, which is unacceptable IMHO. I don't like
getting rid of the tests, but they were passing, and presumably, the
overloads of std.conv.to which use typedef will be deprecated shortly as
well.
2011-11-20 05:09:44 -08:00
Vladimir Panteleev
94850c1cb5
std.conv: Fix to!float("-0")
2011-11-05 23:31:29 +02:00
Nils Boßung
a54503556b
add a unittest for the conversion from typedef to another string type than string
2011-11-03 20:23:23 +01:00
Nils Boßung
d64af831d0
convert the default value to T instead of using string as type
2011-11-02 18:34:43 +01:00
Nils Boßung
e6ff8ca7f2
Merge branch 'master' of git://github.com/D-Programming-Language/phobos
...
Conflicts:
std/conv.d
2011-11-02 18:25:52 +01:00
Andrei Alexandrescu
85c3586e9c
Merge pull request #236 from 9rnsr/common_format
...
to!SomeString should use formatValue
2011-10-30 17:01:40 -07:00
jmdavis
256976dddd
Removed "scheduled for deprecation" pragmas.
...
The pragmas have not been as effective as we might have liked, since
they only work with templates and can't tell you where in your code you
need to make changes, and they seemed to have been more annoying to
programmers than helpful, so we're going to discontinue them. We'll
leave them in for stuff that's actually been deprecated until deprecated
has been improved enough to take a message, but we'll leave "scheduled
for deprecation" messages to the documentation and changelog.
2011-10-23 23:11:17 -07:00
k-hara
b85e583ad6
Issue 6808 - string to BigInt using std.conv.to
2011-10-14 10:17:53 +09:00
Nils Boßung
4d1a3104c1
change type of left to string
...
Before the following wouldn't compile, because a string (S.stringof) is not
implicitly convertible to a dstring:
----
struct S {}
typedef S T;
to!(dstring)(S());
to!(dstring)(T());
----
right and separator have been changed to avoid confusion over
different types.
2011-10-13 23:27:32 +02:00
k-hara
8310805433
Improve deprecation messages.
2011-09-30 05:01:19 +09:00
k-hara
c04028937c
Move import std.format to global.
2011-09-30 04:43:38 +09:00
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