D语言字符与字符串示例代码

代码语言:d

所属分类:其他

代码描述:D语言字符与字符串示例代码

代码标签: 字符串 示例

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

import std.stdio;
import std.uni;

void main() { 
   writeln("Is ğ lowercase? ", isLower('ğ')); 
   writeln("Is Ş lowercase? ", isLower('Ş'));  
   
   writeln("Is İ uppercase? ", isUpper('İ')); 
   writeln("Is ç uppercase? ", isUpper('ç')); 
   
   writeln("Is z alphanumeric? ",       isAlpha('z'));  
   writeln("Is new-line whitespace? ",  isWhite('\n')); 
   
   writeln("Is underline whitespace? ", isWhite('_'));  
   
   writeln("The lowercase of Ğ: ", toLower(�.........完整代码请登录后点击上方下载按钮下载查看

网友评论0