Vuo
2.3.2
type
VuoUrl.h
Go to the documentation of this file.
1
10
#pragma once
11
20
#ifdef __cplusplus
21
extern
"C"
22
{
23
#endif
24
25
#include "
VuoHeap.h
"
26
#include "
VuoInteger.h
"
27
#include "
VuoText.h
"
28
29
struct
json_object
;
30
34
typedef
VuoText
VuoUrl
;
35
36
VuoUrl
VuoUrl_makeFromJson
(
struct
json_object
*js);
37
struct
json_object
*
VuoUrl_getJson
(
const
VuoUrl
value);
38
char
*
VuoUrl_getSummary
(
const
VuoUrl
value);
39
bool
VuoUrl_getParts
(
const
VuoUrl
url,
VuoText
*scheme,
VuoText
*user,
VuoText
*host,
VuoInteger
*port,
VuoText
*path,
VuoText
*query,
VuoText
*fragment)
VuoWarnUnusedResult
;
40
bool
VuoUrl_getFileParts
(
const
VuoUrl
url,
VuoText
*path,
VuoText
*folder,
VuoText
*filename,
VuoText
*extension)
VuoWarnUnusedResult
;
41
42
#define VuoUrl_SUPPORTS_COMPARISON
43
bool
VuoUrl_areEqual
(
const
VuoText
a,
const
VuoText
b);
44
bool
VuoUrl_isLessThan
(
const
VuoText
a,
const
VuoText
b);
45
46
bool
VuoUrl_isRelativePath
(
const
VuoUrl
url);
47
51
enum
VuoUrlNormalizeFlags
{
52
VuoUrlNormalize_default
= 0x0,
53
VuoUrlNormalize_forSaving
= 0x1,
54
VuoUrlNormalize_assumeHttp
= 0x2,
55
VuoUrlNormalize_forLaunching
= 0x4,
56
};
57
VuoUrl
VuoUrl_normalize
(
const
VuoText
url,
enum
VuoUrlNormalizeFlags
flags);
58
59
VuoText
VuoUrl_getPosixPath
(
const
VuoUrl
url);
60
VuoText
VuoUrl_escapePosixPath
(
const
VuoText
posixPath);
61
VuoText
VuoUrl_escapeUTF8
(
const
VuoText
url);
62
bool
VuoUrl_isBundle
(
const
VuoUrl
url);
63
VuoUrl
VuoUrl_appendFileExtension
(
const
char
*filename,
struct
json_object
*validExtensions);
64
VuoText
VuoUrl_decodeRFC3986
(
const
VuoUrl
url);
65
67
70
VuoUrl
VuoUrl_makeFromString
(
const
char
*str);
71
char
*
VuoUrl_getString
(
const
VuoUrl
value);
72
void
VuoUrl_retain
(
VuoUrl
value);
73
void
VuoUrl_release
(
VuoUrl
value);
75
80
#ifdef __cplusplus
81
}
82
#endif
Generated on Sat Jun 19 2021 10:17:50 for Vuo by
1.9.1