public static boolean match ( String string , String pattern ) { if ( string . equals ( pattern ) ) { // speed-up return true ; } return match ( string , pattern , 0 , 0 ) ; }
Checks whether a string matches a given wildcard pattern .