String function ( String arg0 , String arg1 ) { final int loc0 = arg0 . lastIndexOf ( arg1 ) ; if ( loc0 == - 1 ) { return arg0 ; } final String loc1 = arg0 . substring ( 0 , loc0 - 1 ) ; return loc1 ; }
retrieves the path to the executable file of a browser assuming that the command line contains parameter placeholder . concode_field_sep String PARAM_DEF_FIREFOX concode_elem_sep String REG_IEXPLORE_COMMAND concode_elem_sep String PARAM_DEF_IE concode_elem_sep String REG_FIREFOX_COMMAND concode_field_sep String getFirefoxPath concode_elem_sep String getDefaultBrowserPath concode_elem_sep String getIExplorePath concode_elem_sep String getIExploreCommand concode_elem_sep String getDefaultBrowserCommand concode_elem_sep String getFirefoxCommand