Changeset 58068 in vbox for trunk/include
- Timestamp:
- Oct 6, 2015 11:47:43 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103124
- Location:
- trunk/include/iprt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/err.h
r57906 r58068 2536 2536 /** Missing UTF-8 continutation in escaped URI character sequence. */ 2537 2537 #define VERR_URI_MISSING_UTF8_CONTINUATION_BYTE (-24609) 2538 /** Expected URI using the 'file:' scheme. */ 2539 #define VERR_URI_NOT_FILE_SCHEME (-24610) 2538 2540 /** @} */ 2539 2541 -
trunk/include/iprt/mangling.h
r58067 r58068 1863 1863 # define RTUriFileCreate RT_MANGLER(RTUriFileCreate) 1864 1864 # define RTUriFileCreateEx RT_MANGLER(RTUriFileCreateEx) 1865 # define RTUriFileNPath RT_MANGLER(RTUriFileNPath)1866 1865 # define RTUriFilePath RT_MANGLER(RTUriFilePath) 1866 # define RTUriFilePathEx RT_MANGLER(RTUriFilePathEx) 1867 1867 # define RTUriParse RT_MANGLER(RTUriParse) 1868 1868 # define RTUriParsedAuthority RT_MANGLER(RTUriParsedAuthority) -
trunk/include/iprt/uri.h
r58067 r58068 297 297 * pointer to a NULL pointer. If *ppszUri is NULL or 298 298 * cbUri is zero a buffer of at least cbUri chars will 299 * be allocated to hold the UR L. If a buffer was299 * be allocated to hold the URI. If a buffer was 300 300 * requested it must be freed using RTStrFree(). 301 301 * @param cbUri The buffer size in bytes (includes terminator). … … 312 312 313 313 /** 314 * Returns the file path encoded in the URI.314 * Returns the file path encoded in the file URI. 315 315 * 316 316 * @returns the path if the URI contains one, NULL otherwise. … … 321 321 322 322 /** 323 * Returns the file path encoded in the URI, given a max string length. 324 * 325 * @returns the path if the URI contains one, NULL otherwise. 326 * @param pszUri The URI to extract from. 327 * @param uFormat In which format should the path returned. 328 * @param cchMax The max string length to inspect. 329 */ 330 RTDECL(char *) RTUriFileNPath(const char *pszUri, uint32_t uFormat, size_t cchMax); 323 * Queries the file path for the given file URI. 324 * 325 * This API works like RTStrToUtf16Ex with regard to result allocation or 326 * buffering (i.e. it's a bit complicated but very flexible). 327 * 328 * This differs a quite a bit from RTUriParsedPath in that it tries to be 329 * compatible with URL produced by older windows version. This API is basically 330 * producing the same results as the PathCreateFromUrl API on Windows. 331 * 332 * @returns IPRT status code. 333 * @retval VERR_URI_NOT_FILE_SCHEME if not file scheme. 334 * 335 * @param pszUri The alleged file:// URI. 336 * @param fPathStyle The output path style, exactly one of 337 * RTPATH_STR_F_STYLE_HOST, RTPATH_STR_F_STYLE_DOS and 338 * RTPATH_STR_F_STYLE_UNIX. Must include iprt/path.h. 339 * @param ppszPath If cbPath is non-zero, this must either be pointing 340 * to pointer to a buffer of the specified size, or 341 * pointer to a NULL pointer. If *ppszPath is NULL or 342 * cbPath is zero a buffer of at least cbPath chars 343 * will be allocated to hold the path. If a buffer was 344 * requested it must be freed using RTStrFree(). 345 * @param cbPath The buffer size in bytes (includes terminator). 346 * @param pcchPath Where to store the length of the path string, 347 * excluding the terminator. (Optional) 348 * 349 * This may be set under some error conditions, 350 * however, only for VERR_BUFFER_OVERFLOW and 351 * VERR_NO_STR_MEMORY will it contain a valid string 352 * length that can be used to resize the buffer. 353 * @sa RTUriParsedPath, RTUriFilePath 354 */ 355 RTDECL(int) RTUriFilePathEx(const char *pszUri, uint32_t fPathStyle, char **ppszPath, size_t cbPath, size_t *pcchPath); 331 356 332 357 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.