Skip to content

Commit 1f56aba

Browse files
tflanaganrvagg
authored andcommitted
doc: sort punycode alphabetically
Reorders, with no contextual changes, the punycode documentation alphabetically. PR-URL: #3662 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent bc63667 commit 1f56aba

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/api/punycode.markdown

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ Converts a string of Unicode symbols to a Punycode string of ASCII-only symbols.
2222
punycode.encode('mañana'); // 'maana-pta'
2323
punycode.encode('☃-⌘'); // '--dqo34k'
2424

25-
## punycode.toUnicode(domain)
26-
27-
Converts a Punycode string representing a domain name to Unicode. Only the
28-
Punycoded parts of the domain name will be converted, i.e. it doesn't matter if
29-
you call it on a string that has already been converted to Unicode.
30-
31-
// decode domain names
32-
punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com'
33-
punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com'
34-
3525
## punycode.toASCII(domain)
3626

3727
Converts a Unicode string representing a domain name to Punycode. Only the
@@ -42,6 +32,16 @@ you call it with a domain that's already in ASCII.
4232
punycode.toASCII('mañana.com'); // 'xn--maana-pta.com'
4333
punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com'
4434

35+
## punycode.toUnicode(domain)
36+
37+
Converts a Punycode string representing a domain name to Unicode. Only the
38+
Punycoded parts of the domain name will be converted, i.e. it doesn't matter if
39+
you call it on a string that has already been converted to Unicode.
40+
41+
// decode domain names
42+
punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com'
43+
punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com'
44+
4545
## punycode.ucs2
4646

4747
### punycode.ucs2.decode(string)

0 commit comments

Comments
 (0)