Tomoya Tanjo
7b5730478d
Make a unittest for std.conv.toImple for char* to string conversion system
2013-08-04 00:23:03 +09:00
Tomoya Tanjo
323e736062
Add document for memory safety of std.conv.toImpl for char* to string conversion
2013-08-01 21:29:16 +09:00
Andrej Mitrovic
e7f4f715d6
Merge pull request #1429 from Kozzi11/toWithLetterCase
...
Add LetterCase to to!
2013-07-22 13:40:27 -07:00
Kozzi11
923b79998f
Add LetterCase to to!
2013-07-22 15:29:34 +02:00
Hackerpilot
6f9c22bfa9
Merge remote-tracking branch 'upstream/master'
2013-07-13 19:37:11 +00:00
Hackerpilot
ae1dcaa3e1
Removed empty declarations. Converted more C-style array declarations to D-style. Removed trailing whitespace
2013-07-13 19:34:37 +00:00
Hara Kenji
1b230c39c5
Merge pull request #1341 from jmdavis/signed
...
Implement issue# 10314 (add std.traits.signed).
2013-07-04 01:37:01 -07:00
Andrej Mitrovic
4da1639c98
Merge pull request #1337 from 9rnsr/fix_attrs
...
Potentially @safe & pure formatting
2013-06-27 18:53:22 -07:00
k-hara
03a32d6fa4
Fix issue 313 & 314
2013-06-25 08:38:30 +09:00
k-hara
f54525e775
[to!string] severals
2013-06-20 10:57:51 +09:00
k-hara
01f6a978e0
[non to!string] because they are unrelated to formatValue
2013-06-20 10:57:41 +09:00
k-hara
7e60eb2405
[parse, str.to!x] Determine @trusted operations
2013-06-20 10:54:40 +09:00
k-hara
92bef24f2f
fix Issue 10254 - Purity correctness is broken with constructor
2013-06-20 10:54:30 +09:00
k-hara
3427857948
[Refactoring] Delaying throwing Exception makes control flow analysis simple
2013-06-20 10:54:25 +09:00
k-hara
ed03c4af01
Fix trivial nitpicks
2013-06-20 10:54:20 +09:00
monarch dodra
0adb9524d6
Make conv unittest private simbols private
...
There were some symbols in a "version(unittest)" block that were not declared private.
This can create some conflicts during unittest releases. I started out just declaring them private, but that created some ambiguities in other modules that used "A" in their names, eg:
```D
struct Appender(A : T[], T)
```
`std\array.d(2129): Error: module std.array std.conv.A is private`.
So I just mangled the names. As a workaround. I'll file a bug report later.
2013-06-19 23:48:54 +02:00
jmdavis
378fe78352
Implement issue# 10314.
...
This moves std.traits.unsigned to std.conv and adds std.conv.signed,
since for some reason, we have std.traits.unsigned but do not have
std.traits.signed.
2013-06-19 08:47:41 -07:00
k-hara
e2d991b005
Move checkCTFEable to std.exception.assertCTFEable, and use it
2013-06-02 02:32:24 +09:00
Johannes Pfau
d44104ed56
Make std.conv unittests independent of floating point rounding
2013-05-25 12:12:41 +02:00
Brad Anderson
9e374bc4e1
Placement of WIKI in std.conv was corrupting docs
2013-05-14 13:07:48 -06:00
Nils Boßung
cf7169c613
xformat -> format
2013-05-08 01:34:47 +02:00
jmdavis
ce1b2294b0
Undocument some deprecated functions.
...
They were marked for removal in the docs (many of them were intended to
be removed in January), so now they've been removed from the docs and
marked for removal from the code in November.
2013-05-05 16:34:25 -07:00
Hara Kenji
fa378eea48
Merge pull request #1181 from monarchdodra/convEscape
...
Bugfix in std.conv.parseEscape
2013-03-25 05:10:06 -07:00
monarch dodra
4870741575
Fix typo in comment
2013-03-25 13:08:46 +01:00
jmdavis
8f7f6d69ac
Remove some undocumented, deprecated functions which are slated for removal.
...
These have been deprecated for a while, but there was some balking
(primarily from Andrei IIRC) at actually removing them when they were
slated for removal, so they were instead made undocumented and slated
for removal after yet another 6 months or so. So, now that that time has
passed, here's another attempt to actually remove them.
2013-03-06 22:19:34 -08:00
monarch dodra
901da0ca29
Update unittest to take into account...
...
...Octal escapes and named character entities. These still don't work, but there was a test checking octal would throw, which is wrong.
2013-03-01 17:40:38 +01:00
monarch dodra
0512f7ca21
unittests for parseEscape
2013-02-28 18:01:44 +01:00
unknown
4197f797f4
Bugfix in std.conv.parseEscape
...
parseEscape was not parsing the escapes:
\
0
'
"
?
2013-02-28 18:01:17 +01:00
jmdavis
895550649f
Remove all uses of toStringNow.
2013-02-24 18:23:51 -08:00
jmdavis
9bd4044536
Added CTFE-ability tests to some stuff in std.conv and std.string.
...
These tests are for the functionality that std.metastrings provides, and
we need to ensure that the normal functions which are replacing
those in std.metastrings continue to work in CTFE.
2013-02-24 16:02:32 -08:00
Andrej Mitrovic
1d24c8edf5
Fixes Issue 9523 - Regression: Enum to Enum conversion should work in std.conv.
2013-02-17 06:34:55 +01:00
Alex Rønne Petersen
f110604b59
Merge pull request #897 from AndrejMitrovic/Fix_8143
...
Fix Issue 8143 - Safe std.conv.to enum conversion
2013-02-10 10:15:21 -08:00
Andrej Mitrovic
ec1dcf53e3
Fixup Pull1555 - Zero-arg text() should return null string.
2013-02-07 21:06:01 +01:00
Andrej Mitrovic
0b9ace7f34
Specialize textImpl for 1-argument case.
2013-02-07 19:41:37 +01:00
Andrej Mitrovic
aaa6854eb7
Fixes Issue 9373 - Add deprecation messages to Phobos.
2013-01-23 02:44:08 +01:00
Andrej Mitrovic
72a0996089
Fixes Issue 8143 - Safe std.conv.to enum conversion
2013-01-22 02:23:15 +01:00
Andrej Mitrovic
88c2c81fbc
Fixes Issue 6668 - Avoid throwing collateral exceptions in std.conv.to
2013-01-20 17:30:17 +01:00
Nick Treleaven
5083260795
Fix typos
2013-01-07 17:01:11 +00:00
k-hara
b66012ef4e
fix Issue 8908 - Collapse of std.csv by the specifications change of std.conv.parse
2012-12-18 09:11:57 +09:00
Andrei Alexandrescu
f12c860a23
Merge pull request #896 from denis-sh/std.conv.emplace-fixes
...
`std.conv.emplace` fixes & improvements
2012-12-12 07:41:03 -08:00
Nils Boßung
c880456c7b
simplify
2012-12-09 16:18:51 +01:00
Nils Boßung
650a87cbb3
replace counters with bools
...
The only purpose of those counters was to track if anything has been
parsed. A bool suffices and it doesn't overflow.
2012-12-09 08:31:02 +01:00
k-hara
7062ce191a
fix Issue 2486 - taking address of slice rvalue is valid
2012-12-03 14:40:24 +09:00
k-hara
9c35f113cd
Small refactor by isExactSomeString
2012-11-27 22:46:14 +09:00
k-hara
d31e45ac28
fix isSomeString and StringTypeOf
...
additionally DynamicArrayTypeOf and StaticArrayTypeOf considers enums based on arrays
2012-11-27 22:46:12 +09:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
Denis Shelomovskij
44310012fe
Add note about Issue 8902 workaround
...
* Issue 8902 URL: http://d.puremagic.com/issues/show_bug.cgi?id=8902
2012-11-18 21:04:47 +04:00
Denis Shelomovskij
c31fcdcea0
Remove explicit emplace
specialization in unittest.
2012-11-18 20:52:41 +04:00
Denis Shelomovskij
525fb51c87
Prefix EmplaceTest{Struct|Class}
with __conv_
to avoid possible name clashes
...
* also make it `private`
2012-11-04 00:38:35 +04:00
Denis Shelomovskij
4269dd53c4
Add unittest for emplace
with struct without constructor
2012-10-27 15:33:47 +04:00