StringUtil.cs 384 B

12345678910111213
  1. namespace YBEE.EQM.Core;
  2. public static class StringUtil
  3. {
  4. public static string ClearWhite(string str)
  5. {
  6. return str.Trim().Replace(" ", "").Replace("\n", "").Replace("\r", "").Replace("\t", "");
  7. }
  8. public static string ClearIdNumber(string str)
  9. {
  10. return ClearWhite(str).ToUpper().Replace("(", "(").Replace(")", ")").Replace(" ", "");
  11. }
  12. }