main/sal/osl/unx/file_url.cxx
/*********************************************
	 No separate error code if unicode to text
	 conversion or getenv fails because for the
	 caller there is no difference why a file
	 could not be found in $PATH
	 ********************************************/
No separate error code if unicode to text
conversion or getenv fails because for the
caller there is no difference why a file
could not be found in $PATH
No separate error code if unicode to text conversion or getenv fails because for the caller there is no difference why a file could not be found in $PATH
bool find_in_PATH(const rtl::OUString& file_path, rtl::OUString& result)
	{
		bool          bfound = false;
		rtl::OUString path   = rtl::OUString::createFromAscii("PATH");
		rtl::OUString env_path;
		if (osl_Process_E_None == osl_getEnvironment(path.pData, &env_path.pData))
			bfound = osl::searchPath(file_path, env_path, result);
		return bfound;
	}
bool find_in_PATH ( const rtl :: OUString & file_path , rtl :: OUString & result ) { bool bfound = false ; rtl :: OUString path = rtl :: OUString :: createFromAscii ( " " ) ; rtl :: OUString env_path ; if ( osl_Process_E_None == osl_getEnvironment ( path . pData , & env_path . pData ) ) bfound = osl :: searchPath ( file_path , env_path , result ) ; return bfound ; }
No separate error code if unicode to text
conversion or getenv fails because for the
caller there is no difference why a file
could not be found in $PATH
No separate error code if unicode to text conversion or getenv fails because for the caller there is no difference why a file could not be found in $PATH