Vuo  1.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoUrl.c File Reference

Description

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.
 
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.
 
VuoUrl VuoUrl_normalize (const VuoUrl url, bool shouldEscapeSpaces)
 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.
 

Function Documentation

static bool VuoUrl_urlContainsScheme ( const char *  url)
static

Returns a boolean indicating whether the input url contains a scheme.

static bool VuoUrl_urlIsAbsoluteFilePath ( const char *  url)
static

Returns a boolean indicating whether the input url is an absolute file path.

static bool VuoUrl_urlIsUserRelativeFilePath ( const char *  url)
static

Returns a boolean indicating whether the input url is relative to the user's home folder.