@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(CharSequence string, CharSequence pattern) { return match(string, pattern, 0, 0); }
Wildcard { public static boolean match(CharSequence string, CharSequence pattern) { return match(string, pattern, 0, 0); } }
Wildcard { public static boolean match(CharSequence string, CharSequence pattern) { return match(string, pattern, 0, 0); }  }
Wildcard { public static boolean match(CharSequence string, CharSequence pattern) { return match(string, pattern, 0, 0); }  static boolean match(CharSequence string, CharSequence pattern); static boolean equalsOrMatch(CharSequence string, CharSequence pattern); static int matchOne(String src, String[] patterns); static int matchPathOne(String path, String[] patterns); static boolean matchPath(String path, String pattern); }
Wildcard { public static boolean match(CharSequence string, CharSequence pattern) { return match(string, pattern, 0, 0); }  static boolean match(CharSequence string, CharSequence pattern); static boolean equalsOrMatch(CharSequence string, CharSequence pattern); static int matchOne(String src, String[] patterns); static int matchPathOne(String path, String[] patterns); static boolean matchPath(String path, String pattern);  }