![]()  | 
  
    libgpac
    
   Documentation of the core library of GPAC 
   | 
  
URL manipulation tools. More...
 Collaboration diagram for URL tools:Functions | |
| Bool | gf_url_is_local (const char *url) | 
| URL local test.   | |
| char * | gf_url_get_absolute_path (const char *pathName, const char *parentPath) | 
| gets absolute file path   | |
| char * | gf_url_concatenate (const char *parentName, const char *pathName) | 
| URL concatenation.   | |
| char * | gf_url_concatenate_parent (const char *parentName, const char *pathName) | 
| URL concatenation.   | |
| char * | gf_url_percent_encode (const char *path) | 
| URL encoding.   | |
| char * | gf_url_percent_decode (const char *path) | 
| URL decoding.   | |
| void | gf_url_to_fs_path (char *url) | 
| URL to file system.   | |
| Bool | gf_url_is_relative (const char *url) | 
| check relative URL   | |
| char * | gf_url_colon_suffix (const char *URL, char assign_sep) | 
| get first after a filename/path   | |
| const char * | gf_url_get_resource_name (const char *url) | 
| Extract resource name from URL.   | |
| const char * | gf_url_get_path (const char *url) | 
| Gets resource path from URL.   | |
URL manipulation tools.
| Bool gf_url_is_local | ( | const char * | url | ) | 
URL local test.
Tests whether a URL describes a local file or not
| url | the url to analyze | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * gf_url_get_absolute_path | ( | const char * | pathName, | 
| const char * | parentPath | ||
| ) | 
gets absolute file path
Gets the absolute file path from a relative path and its parent absolute one. This can only be used with file paths.
| pathName | the relative path name of a file | 
| parentPath | the absolute parent path name | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * gf_url_concatenate | ( | const char * | parentName, | 
| const char * | pathName | ||
| ) | 
URL concatenation.
Concatenates a relative URL with its parent URL
| parentName | URL of the parent service | 
| pathName | URL of the service | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * gf_url_concatenate_parent | ( | const char * | parentName, | 
| const char * | pathName | ||
| ) | 
URL concatenation.
Same as gf_url_concatenate but if both paths are relative, resolved url is relative to parent path.
| parentName | URL of the parent service | 
| pathName | URL of the service | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * gf_url_percent_encode | ( | const char * | path | ) | 
URL encoding.
Encodes URL by replacing special characters with their % encodings.
| path | URL of the service | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * gf_url_percent_decode | ( | const char * | path | ) | 
URL decoding.
Decodes URL by % encodings with the special characters they correspond to
| path | encoded URL of the service | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| void gf_url_to_fs_path | ( | char * | url | ) | 
URL to file system.
Converts a local URL to a file system value. Removes all white spaces and similar
| url | url to convert | 
 Here is the caller graph for this function:| Bool gf_url_is_relative | ( | const char * | url | ) | 
check relative URL
Checks if given URL is absolute or relative
| url | url to check | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * gf_url_colon_suffix | ( | const char * | URL, | 
| char | assign_sep | ||
| ) | 
get first after a filename/path
Returns a pointer to the first colon at the end of a filename or URL, if any.
If assign_sep is specified, for example '=', the function will make sure that the colon is after the file extension if found and that '=' is not present between colon and file ext. This is used to parse 'a:b.mp4:c' (expected result ':c...' and not ':b...') vs 'a:b=c.mp4' ' (expected result ':b')
| URL | path or URL to inspect | 
| assign_sep | value of assignment operand character. If 0, only checks for colon, otherwise chec that no assign sep or colon is present before file extension, if present | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| const char * gf_url_get_resource_name | ( | const char * | url | ) | 
Extract resource name from URL.
Extracts the resource name from the URL
| url | input url | 
 Here is the caller graph for this function:| const char * gf_url_get_path | ( | const char * | url | ) | 
Gets resource path from URL.
Gets the resource path and name from the URL, stripping scheme, server ID, port...
| url | input url | 
 Here is the caller graph for this function: