Thread overview | |||||
---|---|---|---|---|---|
|
February 06, 2017 [Issue 17149] to!int("42", 16, LetterCase.lower) does not compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17149 b2.temp@gmx.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |b2.temp@gmx.com --- Comment #1 from b2.temp@gmx.com --- The letter case is only interesting in the "int2string" way. I don't see the point of allowing it as parameter in the "string2int" way. The "string2int" way handles mixed lower and upper case. void main() { import std.ascii; import std.conv; assert(to!int("AbCde", 16) == 0xabcde); assert(to!int("aBcdE", 16) == 0xabcde); } -- |
February 06, 2017 [Issue 17149] to!int("42", 16, LetterCase.lower) does not compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17149 Jonathan M Davis <issues.dlang@jmdavisProg.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan M Davis <issues.dlang@jmdavisProg.com> --- Hmmm. Well, when I read the documentation, I understood that you had to specify upper or lowercase and not that it accepted both. Rereading through the documentation though, I see that it's talking specifically about converting _from_ int to string rather than the other way around. So, I guess that I misread the documentation. -- |
March 21, 2020 [Issue 17149] to!int("42", 16, LetterCase.lower) does not compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17149 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|b2.temp@gmx.com | -- |
Copyright © 1999-2021 by the D Language Foundation