D语言新手问题 dlang的字符串大小写转换

· Created · Last modified by 龙卷锋123 replied at · 196 times read

dlang语言的大小写转换需要用到std.uni

import std.stdio,std.uni;
void main()
{
writeln("HELLO WORLD".toLower());// hello world
writeln("hello world".toUpper());// HELLO WORLD
}
Login to reply