This repository was archived by the owner on Dec 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -51,4 +51,36 @@ readFloat :: String -> Number
5151
5252Parse a floating point value from a ` String `
5353
54+ #### ` decodeURI `
55+
56+ ``` purescript
57+ decodeURI :: String -> String
58+ ```
59+
60+ uri decoding
61+
62+ #### ` encodeURI `
63+
64+ ``` purescript
65+ encodeURI :: String -> String
66+ ```
67+
68+ uri encoding
69+
70+ #### ` decodeURIComponent `
71+
72+ ``` purescript
73+ decodeURIComponent :: String -> String
74+ ```
75+
76+ uri component decoding
77+
78+ #### ` encodeURIComponent `
79+
80+ ``` purescript
81+ encodeURIComponent :: String -> String
82+ ```
83+
84+ uri component encoding
85+
5486
Original file line number Diff line number Diff line change @@ -18,3 +18,8 @@ exports.readInt = function (radix) {
1818} ;
1919
2020exports . readFloat = parseFloat ;
21+
22+ exports . decodeURI = decodeURI ;
23+ exports . encodeURI = encodeURI ;
24+ exports . decodeURIComponent = decodeURIComponent ;
25+ exports . encodeURIComponent = encodeURIComponent ;
Original file line number Diff line number Diff line change @@ -19,3 +19,15 @@ foreign import readInt :: Int -> String -> Number
1919
2020-- | Parse a floating point value from a `String`
2121foreign import readFloat :: String -> Number
22+
23+ -- | uri decoding
24+ foreign import decodeURI :: String -> String
25+
26+ -- | uri encoding
27+ foreign import encodeURI :: String -> String
28+
29+ -- | uri component decoding
30+ foreign import decodeURIComponent :: String -> String
31+
32+ -- | uri component encoding
33+ foreign import encodeURIComponent :: String -> String
You can’t perform that action at this time.
0 commit comments