boolean function ( char [ ] arg0 , char [ ] arg1 , boolean arg2 ) { int loc0 = arg0 . length ; if ( arg1 . length < loc0 ) return false ; for ( int loc1 = loc0 ; -- loc1 >= 0 ; ) { if ( arg0 [ loc1 ] == arg1 [ loc1 ] || ( arg2 && Character . toLowerCase ( arg0 [ loc1 ] ) == Character . toLowerCase ( arg1 [ loc1 ] ) ) ) { continue ; } return false ; } return true ; }
answers true if the given name starts with the given prefix , false otherwise . iscasesensitive is used to find out whether or not the comparison should be case sensitive . for example : prefix = ` a ' , ` b ' name = ` a ' , ` b ' , ` b ' , ` a ' , ` b ' , ` a ' iscasesensitive = false result = > true prefix = ` a ' , ` b ' name = ` a ' , ` b ' , ` b ' , ` a ' , ` b ' , ` a ' iscasesensitive = true result = > false concode_field_sep PlaceHolder placeHolder concode_field_sep boolean match