summaryrefslogtreecommitdiff
path: root/src/node_i18n.cc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2016-05-31 11:52:19 -0700
committerJames M Snell <jasnell@gmail.com>2016-10-11 12:41:42 -0700
commit4b312387ead4ba11146b28b8ac05ed385919c4af (patch)
treefd73b23a01d77c7024dc90402f1ec9cd9d2d479f /src/node_i18n.cc
parent88323e874473d18cce22d6ae134a056919c457e4 (diff)
downloadandroid-node-v8-4b312387ead4ba11146b28b8ac05ed385919c4af.tar.gz
android-node-v8-4b312387ead4ba11146b28b8ac05ed385919c4af.tar.bz2
android-node-v8-4b312387ead4ba11146b28b8ac05ed385919c4af.zip
url: adding WHATWG URL support
Implements WHATWG URL support. Example: ``` var u = new url.URL('http://example.org'); ``` Currently passing all WHATWG url parsing tests and all but two of the setter tests. The two setter tests are intentionally skipped for now but will be revisited. PR-URL: https://github.com/nodejs/node/pull/7448 Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r--src/node_i18n.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc
index 0f3b9b76e6..f89ae40a55 100644
--- a/src/node_i18n.cc
+++ b/src/node_i18n.cc
@@ -79,9 +79,9 @@ bool InitializeICUDirectory(const char* icu_data_path) {
}
}
-static int32_t ToUnicode(MaybeStackBuffer<char>* buf,
- const char* input,
- size_t length) {
+int32_t ToUnicode(MaybeStackBuffer<char>* buf,
+ const char* input,
+ size_t length) {
UErrorCode status = U_ZERO_ERROR;
uint32_t options = UIDNA_DEFAULT;
options |= UIDNA_NONTRANSITIONAL_TO_UNICODE;
@@ -113,9 +113,9 @@ static int32_t ToUnicode(MaybeStackBuffer<char>* buf,
return len;
}
-static int32_t ToASCII(MaybeStackBuffer<char>* buf,
- const char* input,
- size_t length) {
+int32_t ToASCII(MaybeStackBuffer<char>* buf,
+ const char* input,
+ size_t length) {
UErrorCode status = U_ZERO_ERROR;
uint32_t options = UIDNA_DEFAULT;
options |= UIDNA_NONTRANSITIONAL_TO_ASCII;