protected boolean regExpRegionMatches(String text,int tStart,String p,int pStart,int plen){
  while (plen-- > 0) {
    char tchar=text.charAt(tStart++);
    char pchar=p.charAt(pStart++);
    if (!this.fIgnoreWildCards) {
      if (pchar == fSingleWildCard) {
        continue;
      }
    }
    if (pchar == tchar) {
      continue;
    }
    if (this.fIgnoreCase) {
      if (Character.toUpperCase(tchar) == Character.toUpperCase(pchar)) {
        continue;
      }
      if (Character.toLowerCase(tchar) == Character.toLowerCase(pchar)) {
        continue;
      }
    }
    return false;
  }
  return true;
}

protected boolean regExpRegionMatches ( String text , int tStart , String p , int pStart , int plen ) { while ( plen -- > 0 ) { char tchar = text . charAt ( tStart ++ ) ; char pchar = p . charAt ( pStart ++ ) ; if ( ! this . fIgnoreWildCards ) { if ( pchar == fSingleWildCard ) { continue ; } } if ( pchar == tchar ) { continue ; } if ( this . fIgnoreCase ) { if ( Character . toUpperCase ( tchar ) == Character . toUpperCase ( pchar ) ) { continue ; } if ( Character . toLowerCase ( tchar ) == Character . toLowerCase ( pchar ) ) { continue ; } } return false ; } return true ; }
check for a match in a certain region .
