【C++中的string字符串判断函数】tolower(), toupper(), isalnum(), isdigit(), islower(), isupper(), isalpha()

  • tolower()/toupper():将字符串string转换大小写
  • isalnum():判断字符串是否为字母+十进制数字
  • isdigit():判断字符串是否为十进制数字
  • islower(): 判断字符串是否为小写
  • isupper(): 判断字符串是否为大写
  • isalpha(): 判断字符串是否为字母

你可能感兴趣的:(C++,c++,开发语言,STL)