예제 #1
0
        public static bool IsLengthRange(string str, int minLength, int maxLength)
        {
            int length = CommonProvider.GetLength(str);

            return((length >= minLength) && (length < maxLength));
        }
예제 #2
0
 public static bool IsInArray(string searchStr, string arrStr, string splitStr, bool caseInsensetive)
 {
     return(IsInArray(searchStr, CommonProvider.Split(arrStr, splitStr), caseInsensetive));
 }
예제 #3
0
 public static bool IsInArray(string searchStr, string arrStr, string splitStr)
 {
     return(IsInArray(searchStr, CommonProvider.Split(arrStr, splitStr), true));
 }
예제 #4
0
 public static bool IsInArray(string searchStr, string[] arrStr, bool caseInsensetive)
 {
     return(CommonProvider.GetIndexInArray(searchStr, arrStr, caseInsensetive) >= 0);
 }
예제 #5
0
 public static bool IsInArray(string searchStr, string arrStr)
 {
     return(IsInArray(searchStr, CommonProvider.Split(arrStr, ","), false));
 }
예제 #6
0
 public static bool IsExceedMaxLength(string str, int maxLength)
 {
     return(CommonProvider.GetLength(str) >= maxLength);
 }