Index: src/uri.h |
diff --git a/src/uri.h b/src/uri.h |
index 1a0a61fbc2631c3cb2674e1a66a881d91ed83e61..cb223bd63d1e6c20126dbbca173ba5bd9b3285a4 100644 |
--- a/src/uri.h |
+++ b/src/uri.h |
@@ -13,24 +13,33 @@ namespace internal { |
class Uri : public AllStatic { |
public: |
+ // ES6 section 18.2.6.2 decodeURI (encodedURI) |
+ static MaybeHandle<String> DecodeUri(Isolate* isolate, Handle<String> uri) { |
+ return Decode(isolate, uri, true); |
+ } |
+ |
+ // ES6 section 18.2.6.3 decodeURIComponent (encodedURIComponent) |
+ static MaybeHandle<String> DecodeUriComponent(Isolate* isolate, |
+ Handle<String> component) { |
+ return Decode(isolate, component, false); |
+ } |
+ |
+ // ES6 section 18.2.6.4 encodeURI (uri) |
static MaybeHandle<String> EncodeUri(Isolate* isolate, Handle<String> uri) { |
return Encode(isolate, uri, true); |
} |
+ // ES6 section 18.2.6.5 encodeURIComponenet (uriComponent) |
static MaybeHandle<String> EncodeUriComponent(Isolate* isolate, |
Handle<String> component) { |
return Encode(isolate, component, false); |
} |
- // DecodeUri |
- // DecodeUriComponent |
- // escape |
- // unescape |
- |
private: |
+ static MaybeHandle<String> Decode(Isolate* isolate, Handle<String> uri, |
+ bool is_uri); |
static MaybeHandle<String> Encode(Isolate* isolate, Handle<String> uri, |
bool is_uri); |
- // decode |
}; |
} // namespace internal |