📅  最后修改于: 2020-09-25 10:28:01             🧑  作者: Mango
iswlower() 函数在
int iswlower(wint_t ch);
iswlower() 函数检查ch
是否为小写字符,即以下内容之一
a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z.
#include
#include
#include
using namespace std;
int main()
{
setlocale(LC_ALL, "en_US.UTF-8");
wchar_t ch1 = L'\u03a0';
wchar_t ch2 = L'\u03c0';
wcout << L"islower(" << ch1 << ") returned " << boolalpha << (bool)iswlower(ch1) << endl;
wcout << L"islower(" << ch2 << ") returned " << boolalpha << (bool)iswlower(ch2) << endl;
return 0;
}
运行该程序时,输出为:
islower(Π) returned false
islower(π) returned true