const stringUtils = {
  getFileExtension(FileName) {
    if(FileName == null) {
      return null
    }
    var re = /(?:\.([^.]+))?$/
    var ext = re.exec(FileName)[1]
    return ext
  },
  isEmpty(str) {
    return str == null || str == ''
  },
  isChar(Code) {
    return ((Code >= 48) && (Code <= 57))
        || (Code >= 65 && Code <= 90)
        || (Code >= 96 && Code <= 106) || (Code >= 109 && Code <= 111)
        || (Code == 32)
        || (Code >= 186 && Code <= 191)
        || (Code == 229)
  },
  isEqual(One,Two) {
    if (One != null && (typeof One == 'string'))
      One = One.toLowerCase()
    if (Two != null && (typeof Two == 'string'))
      Two = Two.toLowerCase()
    if (One == Two) {
      return true
    }
    return false
  }
}
export default stringUtils
