This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuri.json
101 lines (100 loc) · 2.78 KB
/
uri.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"@metadata": {
"name": "uri",
"comment": "This is a mixed library and object. The creator act as a library and can be fully identified by its library prefix, but the created object can not be identified unless intellisense is active.",
"authors": [
"Jeblad"
]
},
"mw.uri 001 ": {
"prefix": "mw.uri.encode( string[, enctype] )",
"body": [
"mw.uri.encode( ${1:string}${2:, ${3:enctype}} )$0"
],
"description": "Percent-encodes the string.\n"
},
"mw.uri 002 ": {
"prefix": "mw.uri.decode( string[, enctype] )",
"body": [
"mw.uri.decode( ${1:string}${2:, ${3:enctype}} )$0"
],
"description": "Percent-decodes the string.\n"
},
"mw.uri 003 ": {
"prefix": "mw.uri.anchorEncode( string )",
"body": [
"mw.uri.anchorEncode( ${1:string} )$0"
],
"description": "Encodes the string for use in a uri fragment.\n"
},
"mw.uri 004 ": {
"prefix": "mw.uri.buildQueryString( table )",
"body": [
"mw.uri.buildQueryString( ${1:table} )$0"
],
"description": "Encodes the table as a uri query string.\n"
},
"mw.uri 005 ": {
"prefix": "mw.uri.parseQueryString( string, firstIndex, lastIndex )",
"body": [
"mw.uri.parseQueryString( ${1:string}, ${2:i}, ${3:j} )$0"
],
"description": "Decodes the query string s to a table.\n"
},
"mw.uri 006 ": {
"prefix": "mw.uri.canonicalUrl( page[, query] )",
"body": [
"mw.uri.canonicalUrl( ${1:page}${2:, ${3:query}} )$0"
],
"description": "Returns a uri for the canonical url, with optional query string/table.\n"
},
"mw.uri 007 ": {
"prefix": "mw.uri.fullUrl( page[, query] )",
"body": [
"mw.uri.fullUrl( ${1:page}${2:, ${3:query}} )$0"
],
"description": "Returns a uri for the full url, with optional query string/table.\n"
},
"mw.uri 008 ": {
"prefix": "mw.uri.localUrl( page[, query] )",
"body": [
"mw.uri.localUrl( ${1:page}${2:, ${3:query}} )$0"
],
"description": "Returns a uri for the full url, with optional query string/table.\n"
},
"mw.uri 009 ": {
"prefix": "mw.uri.new( string )",
"body": [
"mw.uri.new( ${1:string} )$0"
],
"description": "Constructs a new uri object for the passed string or table.\n"
},
"mw.uri 010 ": {
"prefix": "mw.uri.validate( table )",
"body": [
"mw.uri.validate( ${1:table} )$0"
],
"description": "Validates the passed table or uri object.\n"
},
"mw.uri 011 ": {
"prefix": "mw.uri:parse( string )",
"body": [
":parse( ${1:string} )$0"
],
"description": "Parses a string into the current uri object.\n"
},
"mw.uri 012 ": {
"prefix": "mw.uri:clone()",
"body": [
":clone()$0"
],
"description": "Makes a copy of the URI object.\n"
},
"mw.uri 013 ": {
"prefix": "mw.uri:extend( parameters )",
"body": [
":extend( ${1:parameters} )$0"
],
"description": "Merges the parameters into the object's query table.\n"
}
}