Vuo  1.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions

Description

Uniform Resource Locator.

Typedefs

typedef VuoText VuoUrl
 Uniform Resource Locator.
 

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.
 
struct json_objectVuoUrl_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_isRelativePath (const VuoUrl url)
 Returns a boolean indicating whether the provided url is a relative file 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.
 
VuoUrl VuoUrl_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoUrl_getString (const VuoUrl value)
 Automatically generated function.
 
void VuoUrl_retain (VuoUrl value)
 Automatically generated function.
 
void VuoUrl_release (VuoUrl value)
 Automatically generated function.
 

Typedef Documentation

typedef VuoText VuoUrl

Uniform Resource Locator.

Function Documentation

struct json_object* VuoUrl_getJson ( const VuoUrl  value)
read

Encodes value as a JSON object.

VuoText VuoUrl_getPosixPath ( const VuoUrl  url)

If url uses the file:// scheme, returns the corresponding (URL-decoded) POSIX path.

If url does not use the file:// scheme, returns NULL.

char* VuoUrl_getString ( const VuoUrl  value)

Automatically generated function.

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_isRelativePath ( const VuoUrl  url)

Returns a boolean indicating whether the provided url is a relative file path.

VuoUrl VuoUrl_makeFromJson ( struct json_object js)

Decodes the JSON object js, expected to contain a UTF-8 string, to create a new value.

VuoUrl VuoUrl_makeFromString ( const char *  str)

Automatically generated function.

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.

If url contains a URL schema, this function assumes that all necessary characters are already URL-encoded. Otherwise, this function assumes that no characters in url are URL-encoded, and encodes the characters necessary to make it a valid URL.

If isSave is true and this function is called from an exported app, relative file paths will be resolved to Desktop instead of the app resources folder.

If url is NULL, returns NULL.

If url is emptystring, returns a file URL for the current working path (Desktop if isSave is true).

void VuoUrl_release ( VuoUrl  value)

Automatically generated function.

void VuoUrl_retain ( VuoUrl  value)

Automatically generated function.