Lines Matching refs:path
143 inline bool is_UNC_path(const sal_Unicode* path) in is_UNC_path() argument
144 …{ return (0 == wcsncmp(UNC_PREFIX, reinterpret_cast<LPCWSTR>(path), ELEMENTS_OF_ARRAY(UNC_PREFIX) … in is_UNC_path()
147 inline bool is_UNC_path(const rtl::OUString& path) in is_UNC_path() argument
148 { return is_UNC_path(path.getStr()); } in is_UNC_path()
151 void parse_UNC_path(const sal_Unicode* path, UNCComponents* puncc) in parse_UNC_path() argument
153 OSL_PRECOND(is_UNC_path(path), "Precondition violated: No UNC path"); in parse_UNC_path()
154 OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) == -1, "Path must not contain slashes"); in parse_UNC_path()
156 const sal_Unicode* pend = path + rtl_ustr_getLength(path); in parse_UNC_path()
157 const sal_Unicode* ppos = path + 2; in parse_UNC_path()
188 void parse_UNC_path(const rtl::OUString& path, UNCComponents* puncc) in parse_UNC_path() argument
189 { parse_UNC_path(path.getStr(), puncc); } in parse_UNC_path()
193 bool has_path_parent(const sal_Unicode* path) in has_path_parent() argument
199 if (is_UNC_path(path)) in has_path_parent()
202 parse_UNC_path(path, &unc_comp); in has_path_parent()
207 has_parent = !osl::systemPathIsLogicalDrivePattern(path); in has_path_parent()
213 inline bool has_path_parent(const rtl::OUString& path) in has_path_parent() argument
214 { return has_path_parent(path.getStr()); } in has_path_parent()
682 static int path_make_parent(sal_Unicode* path) in path_make_parent() argument
692 OSL_PRECOND(rtl_ustr_indexOfChar(path, SLASH) == -1, "Path must not contain slashes"); in path_make_parent()
693 OSL_PRECOND(has_path_parent(path), "Path must have a parent"); in path_make_parent()
695 sal_Unicode* pos_last_backslash = path + rtl_ustr_lastIndexOfChar(path, BACKSLASH); in path_make_parent()
697 return (pos_last_backslash - path); in path_make_parent()
1239 bool is_floppy_volume_mount_point(const rtl::OUString& path) in is_floppy_volume_mount_point() argument
1246 rtl::OUString p(path); in is_floppy_volume_mount_point()
1267 static bool is_floppy_drive(const rtl::OUString& path) in is_floppy_drive() argument
1277 const sal_Unicode* pszPath = path.getStr(); in is_floppy_drive()
1278 …hr(FLOPPY_DRV_LETTERS, pszPath[0]) && (L':' == pszPath[1])) || is_floppy_volume_mount_point(path)); in is_floppy_drive()
1282 static bool is_volume_mount_point(const rtl::OUString& path) in is_volume_mount_point() argument
1284 rtl::OUString p(path); in is_volume_mount_point()
1313 static UINT get_volume_mount_point_drive_type(const rtl::OUString& path) in get_volume_mount_point_drive_type() argument
1315 if (0 == path.getLength()) in get_volume_mount_point_drive_type()
1318 rtl::OUString p(path); in get_volume_mount_point_drive_type()
1336 const rtl::OUString& path, oslVolumeInfo* pInfo) in osl_get_drive_type() argument
1341 if (is_volume_mount_point(path)) in osl_get_drive_type()
1342 drive_type = get_volume_mount_point_drive_type(path); in osl_get_drive_type()
1344 drive_type = GetDriveType(reinterpret_cast<LPCTSTR>(path.getStr())); in osl_get_drive_type()
1358 if (is_floppy_drive(path)) in osl_get_drive_type()
1392 const rtl::OUString& path, oslVolumeInfo *pInfo) in get_volume_space_information() argument
1395 reinterpret_cast<LPCTSTR>(path.getStr()), in get_volume_space_information()
1421 const rtl::OUString& path, sal_uInt32 field_mask, oslVolumeInfo* pInfo) in get_filesystem_attributes() argument
1430 oslFileError osl_error = osl_get_drive_type(path, pInfo); in get_filesystem_attributes()
1444 LPCTSTR pszPath = reinterpret_cast<LPCTSTR>(path.getStr()); in get_filesystem_attributes()
1474 static bool path_get_parent(rtl::OUString& path) in path_get_parent() argument
1476 OSL_PRECOND(path.lastIndexOf(SLASH) == -1, "Path must not have slashes"); in path_get_parent()
1478 if (!has_path_parent(path)) in path_get_parent()
1480 sal_Int32 i = path.lastIndexOf(BACKSLASH); in path_get_parent()
1483 path = rtl::OUString(path.getStr(), i); in path_get_parent()