1   public bool IsChinaString(string CString)
 2         {
 3           bool BoolValue = false;
 4           for (int i = 0; i < CString.Length; i++)
 5             {
 6               if (Convert.ToInt32(Convert.ToChar(CString.Substring(i, 1)))< Convert.ToInt32(Convert.ToChar(128)))
 7                 {
 8                   BoolValue = false;
 9                  }
10                  else
11                 {
12 
13                     return BoolValue = true;
14                 }
15                 }
16 
17               return BoolValue;
18 
19         }
View Code

相关文章:

  • 2021-12-29
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-10-31
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案