@Test public void test() { Assert.assertEquals(true, match("wefewf%2333", "wefewfww$222ww#$532333")); Assert.assertEquals(false, match("", "wefewfww$222ww#$532333")); Assert.assertEquals(false, match("ww", "wefewfww$222ww#$532333")); Assert.assertEquals(true, match("%ww%", "wefewfww$222ww#$532333")); Assert.assertEquals(true, match("%aa", "wefewfww$222ww#$532333aa")); Assert.assertEquals(true, match("%gggg%", "wefewfww$222ww#$532gggg333")); Assert.assertEquals(true, match("%gggg_GG", "wefewfww$222ww#$532gggg3GG")); Assert.assertEquals(true, match("%ooo%", "gg你妹gg_G呵呵ooo哒喵喵喵G")); Assert.assertEquals(true, match("_ああ___你妹%あなたの妹", "?ああ_gg你妹gg_G呵呵ooo哒\t\b喵喵喵Gあなたの妹")); Assert.assertEquals(false, match("%ooo", "gg你妹gg_G呵呵ooo哒喵喵喵G")); Assert.assertEquals(true, match("aa", "aa")); }
public static boolean match(UTF8String string, UTF8String pattern) { return match(string, pattern, 0, 0); }
SQLLike { public static boolean match(UTF8String string, UTF8String pattern) { return match(string, pattern, 0, 0); } }
SQLLike { public static boolean match(UTF8String string, UTF8String pattern) { return match(string, pattern, 0, 0); }  }
SQLLike { public static boolean match(UTF8String string, UTF8String pattern) { return match(string, pattern, 0, 0); }  static boolean match(UTF8String string, UTF8String pattern); }
SQLLike { public static boolean match(UTF8String string, UTF8String pattern) { return match(string, pattern, 0, 0); }  static boolean match(UTF8String string, UTF8String pattern);  }