string to uppercase
Jin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Apr 2 23:37:16 PDT 2016
On Sunday, 3 April 2016 at 03:05:08 UTC, stunaep wrote:
> Is there any easy way to convert a string to uppercase? I tried
> s.asUpperCase, but it returns a ToCaserImpl, not a string, and
> it cant be cast to string. I also tried toUpper but it wasnt
> working with strings
http://dpaste.dzfl.pl/b14c35f747cc
import std.uni, std.stdio;
void main()
{
writeln( "abcабв".toUpper );
}
More information about the Digitalmars-d-learn
mailing list