Vuo
1.2.0
|
VuoUrl implementation.
Functions | |
VuoUrl | VuoUrl_makeFromJson (json_object *js) |
Decodes the JSON object js , expected to contain a UTF-8 string, to create a new value. | |
json_object * | VuoUrl_getJson (const VuoUrl value) |
Encodes value as a JSON object. | |
char * | VuoUrl_getSummary (const VuoUrl value) |
Creates a new UTF-8 C string from value , or, if it's more than 50 Unicode characters long, creates an aposiopesis. | |
bool | VuoUrl_getParts (const VuoUrl url, VuoText *scheme, VuoText *user, VuoText *host, VuoInteger *port, VuoText *path, VuoText *query, VuoText *fragment) |
Attempts to parse url and outputs its parts. | |
bool | VuoUrl_getFileParts (const VuoUrl url, VuoText *path, VuoText *folder, VuoText *filename, VuoText *extension) |
Attempts to parse url as a file:/// URL, and outputs its parts. | |
bool | VuoUrl_areEqual (const VuoText a, const VuoText b) |
Returns true if a == b. | |
bool | VuoUrl_isLessThan (const VuoText a, const VuoText b) |
Returns true if a < b. | |
static bool | VuoUrl_urlContainsScheme (const char *url) |
Returns a boolean indicating whether the input url contains a scheme. | |
static bool | VuoUrl_urlIsAbsoluteFilePath (const char *url) |
Returns a boolean indicating whether the input url is an absolute file path. | |
static bool | VuoUrl_urlIsUserRelativeFilePath (const char *url) |
Returns a boolean indicating whether the input url is relative to the user's home folder. | |
bool | VuoUrl_isRelativePath (const VuoUrl url) |
Returns a boolean indicating whether the provided url is a relative file path. | |
VuoText | VuoUrl_escapePosixPath (const VuoText path) |
URL-escapes characters in path to make it a valid URL path. | |
VuoUrl | VuoUrl_normalize (const VuoText url, bool isSave) |
Resolves url (which could be an absolute URL, an absolute Unix file path, a relative Unix file path, or a user-relative Unix file path) into an absolute URL. | |
VuoText | VuoUrl_getPosixPath (const VuoUrl url) |
If url uses the file:// scheme, returns the corresponding (URL-decoded) POSIX path. | |
bool | VuoUrl_isBundle (const VuoUrl url) |
Returns true if the url refers to an OS X bundle folder. | |
Variables | |
static const char | VuoUrl_reservedCharacters [] |
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm#whatwhy | |
static const char | VuoUrl_decToHex [] = "0123456789abcdef" |
Convert between hex and decimal. | |
static const char * | VuoUrl_fileScheme = "file://" |
file:// | |
|
static |
Returns a boolean indicating whether the input url
contains a scheme.
|
static |
Returns a boolean indicating whether the input url
is an absolute file path.
|
static |
Returns a boolean indicating whether the input url
is relative to the user's home folder.
|
static |
Convert between hex and decimal.
|
static |
|
static |
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm#whatwhy