Example #1
0
 public static bool Like2(string str, string pattern, string escape_str)
 {
     if (str == null)
         return false;
     char escape_char = '\0';
     if (escape_str.Length > 1)
        throw new ESQLException(Properties.Resources.EscapeCharToLong);
     escape_char = escape_str[0];
     LikeOperator like = new LikeOperator(pattern, escape_char,
         false, System.Globalization.CultureInfo.CurrentCulture);
     return like.Compare(str);
 }
Example #2
0
 public static bool Like1(string str, LikeOperator like)
 {
     if (str == null)
         return false;
     return like.Compare(str);
 }