main/sal/osl/unx/file_url.cxx
/*********************************************
	 No separate error code if unicode to text
	 conversion or getcwd fails because for the
	 caller there is no difference why a file
	 could not be found in CDW
	 ********************************************/
No separate error code if unicode to text
conversion or getcwd fails because for the
caller there is no difference why a file
could not be found in CDW
No separate error code if unicode to text conversion or getcwd fails because for the caller there is no difference why a file could not be found in CDW
bool find_in_CWD(const rtl::OUString& file_path, rtl::OUString& result)
	{
		bool bfound = false;
		rtl::OUString cwd_url;
		if (osl_Process_E_None == osl_getProcessWorkingDir(&cwd_url.pData))
		{
			rtl::OUString cwd;
			FileBase::getSystemPathFromFileURL(cwd_url, cwd);
			bfound = osl::searchPath(file_path, cwd, result);
		}
		return bfound;
	}
bool find_in_CWD ( const rtl :: OUString & file_path , rtl :: OUString & result ) { bool bfound = false ; rtl :: OUString cwd_url ; if ( osl_Process_E_None == osl_getProcessWorkingDir ( & cwd_url . pData ) ) { rtl :: OUString cwd ; FileBase :: getSystemPathFromFileURL ( cwd_url , cwd ) ; bfound = osl :: searchPath ( file_path , cwd , result ) ; } return bfound ; }
No separate error code if unicode to text
conversion or getcwd fails because for the
caller there is no difference why a file
could not be found in CDW
No separate error code if unicode to text conversion or getcwd fails because for the caller there is no difference why a file could not be found in CDW