标签:
-(BOOL)isChineseCharacterAndLettersAndNumbersAndUnderScore:(NSString *)string
{
int len=string.length;
for(int i=0;i<len;i++)
{
unichar a=[string characterAtIndex:i];
if(!((isalpha(a))
||(isalnum(a))
||((a==‘_‘))
||((a >= 0x4e00 && a <= 0x9fa6))
))
return NO;
}
return YES;
}
标签:
原文地址:http://www.cnblogs.com/xingkonghao818/p/4352927.html