main/sal/osl/unx/file_url.cxx
/****************************************************************************
 * osl_getSystemPathFromFileURL_Ex - helper function
 * clients may specify if they want to accept relative
 * URLs or not
 ****************************************************************************/
helper function
clients may specify if they want to accept relative
URLs or not
helper function clients may specify if they want to accept relative URLs or not
oslFileError osl_getSystemPathFromFileURL_Ex(
	rtl_uString *ustrFileURL, rtl_uString **pustrSystemPath, sal_Bool bAllowRelative)
{
	rtl_uString* temp = 0;
	oslFileError osl_error = osl_getSystemPathFromFileURL(ustrFileURL, &temp);
	if (osl_File_E_None == osl_error)
	{
		if (bAllowRelative || (UNICHAR_SLASH == temp->buffer[0]))
		{
			*pustrSystemPath = temp;
		}
		else
		{
			rtl_uString_release(temp);
			osl_error = osl_File_E_INVAL;
		}
	}
	return osl_error;
}
oslFileError osl_getSystemPathFromFileURL_Ex ( rtl_uString * ustrFileURL , rtl_uString * * pustrSystemPath , sal_Bool bAllowRelative ) { rtl_uString * temp = 0 ; oslFileError osl_error = osl_getSystemPathFromFileURL ( ustrFileURL , & temp ) ; if ( osl_File_E_None == osl_error ) { if ( bAllowRelative || ( UNICHAR_SLASH == temp -> buffer [ 0 ] ) ) { * pustrSystemPath = temp ; } else { rtl_uString_release ( temp ) ; osl_error = osl_File_E_INVAL ; } } return osl_error ; }
osl_getSystemPathFromFileURL_Ex - helper function
 clients may specify if they want to accept relative
 URLs or not
osl_getSystemPathFromFileURL_Ex - helper function clients may specify if they want to accept relative URLs or not