Vuo  2.3.2
Macros | Typedefs | Enumerations | Functions
VuoUrl.h File Reference

Description

VuoUrl C type definition.

Definition in file VuoUrl.h.

Go to the source code of this file.

Typedefs

typedef VuoText VuoUrl
 Uniform Resource Locator. More...
 

Enumerations

enum  VuoUrlNormalizeFlags { VuoUrlNormalize_default = 0x0 , VuoUrlNormalize_forSaving = 0x1 , VuoUrlNormalize_assumeHttp = 0x2 , VuoUrlNormalize_forLaunching = 0x4 }
 Bitwise flags modifying URL normalization behavior. More...
 

Functions

VuoUrl VuoUrl_makeFromJson (struct json_object *js)
 Decodes the JSON object js, expected to contain a UTF-8 string, to create a new value. More...
 
struct json_objectVuoUrl_getJson (const VuoUrl value)
 Encodes value as a JSON object. More...
 
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. More...
 
bool VuoUrl_getParts (const VuoUrl url, VuoText *scheme, VuoText *user, VuoText *host, VuoInteger *port, VuoText *path, VuoText *query, VuoText *fragment) VuoWarnUnusedResult
 Attempts to parse url and outputs its parts. More...
 
bool VuoUrl_getFileParts (const VuoUrl url, VuoText *path, VuoText *folder, VuoText *filename, VuoText *extension) VuoWarnUnusedResult
 Attempts to parse url as a file: URL, and outputs its parts. More...
 
bool VuoUrl_areEqual (const VuoText a, const VuoText b)
 Returns true if a == b. More...
 
bool VuoUrl_isLessThan (const VuoText a, const VuoText b)
 Returns true if a < b. More...
 
bool VuoUrl_isRelativePath (const VuoUrl url)
 Returns a boolean indicating whether the provided url is a relative file path. More...
 
VuoUrl VuoUrl_normalize (const VuoText url, enum VuoUrlNormalizeFlags flags)
 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. More...
 
VuoText VuoUrl_getPosixPath (const VuoUrl url)
 If url uses the file: scheme, returns the corresponding (URL-decoded) POSIX path. More...
 
VuoText VuoUrl_escapePosixPath (const VuoText posixPath)
 URL-escapes characters in path to make it a valid IRI path. More...
 
VuoText VuoUrl_escapeUTF8 (const VuoText url)
 URL-escapes UTF-8 bytes greater than 0x7F. More...
 
bool VuoUrl_isBundle (const VuoUrl url)
 Returns true if the url refers to an OS X bundle folder. More...
 
VuoUrl VuoUrl_appendFileExtension (const char *filename, struct json_object *validExtensions)
 Given a filename and set of valid extensions, returns a new VuoUrl guaranteed to have the extension. More...
 
VuoText VuoUrl_decodeRFC3986 (const VuoUrl url)
 Decodes a RFC 3986 section 2.1 URI-encoded string. More...
 
VuoUrl VuoUrl_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoUrl_getString (const VuoUrl value)
 Automatically generated function. More...
 
void VuoUrl_retain (VuoUrl value)
 Automatically generated function. More...
 
void VuoUrl_release (VuoUrl value)
 Automatically generated function. More...