Home
last modified time | relevance | path

Searched refs:toASCII (Results 1 – 25 of 27) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-icu-punycode.js23 assert.strictEqual(ascii, icu.toASCII(unicode), `toASCII(${i + 1})`);
25 assert.strictEqual(ascii, icu.toASCII(icu.toUnicode(ascii)),
27 assert.strictEqual(unicode, icu.toUnicode(icu.toASCII(unicode)),
42 () => icu.toASCII(input),
49 icu.toASCII(input, true); // Should not throw.
51 assert.strictEqual(icu.toASCII(input), output, `ToASCII ${caseComment}`);
52 assert.strictEqual(icu.toASCII(input, true), output,
Dtest-punycode.js226 toASCII: (test) => assert.strictEqual(
227 punycode.toASCII(test.decoded),
270 assert.strictEqual(punycode.toASCII('Bücher@日本語.com'),
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUTS46.java115 boolean isLabel, boolean toASCII, in process() argument
138 if(toASCII) { in process()
184 if(toASCII && (i-labelStart)>63) { in process()
193 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info); in process()
205 boolean isLabel, boolean toASCII, in processUnicode() argument
214 toASCII ? (options&NONTRANSITIONAL_TO_ASCII)==0 : in processUnicode()
223 toASCII, info); in processUnicode()
257 processLabel(dest, labelStart, labelLimit-labelStart, toASCII, info); in processUnicode()
332 boolean toASCII, in processLabel() argument
352 return markBadACELabel(dest, labelStart, labelLength, toASCII, info); in processLabel()
[all …]
/third_party/node/deps/icu-small/source/common/
Duts46.cpp154 UBool isLabel, UBool toASCII,
160 UBool isLabel, UBool toASCII,
167 UBool isLabel, UBool toASCII,
180 UBool toASCII,
185 UBool toASCII, IDNAInfo &info, UErrorCode &errorCode) const;
303 UBool isLabel, UBool toASCII, in process() argument
338 if(toASCII) { in process()
385 if(toASCII && (i-labelStart)>63) { in process()
396 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info, errorCode); in process()
407 UBool isLabel, UBool toASCII, in processUTF8() argument
[all …]
/third_party/icu/icu4c/source/common/
Duts46.cpp154 UBool isLabel, UBool toASCII,
160 UBool isLabel, UBool toASCII,
167 UBool isLabel, UBool toASCII,
180 UBool toASCII,
185 UBool toASCII, IDNAInfo &info, UErrorCode &errorCode) const;
303 UBool isLabel, UBool toASCII, in process() argument
338 if(toASCII) { in process()
385 if(toASCII && (i-labelStart)>63) { in process()
396 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info, errorCode); in process()
407 UBool isLabel, UBool toASCII, in processUTF8() argument
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DUTS46.java116 boolean isLabel, boolean toASCII, in process() argument
139 if(toASCII) { in process()
185 if(toASCII && (i-labelStart)>63) { in process()
194 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info); in process()
206 boolean isLabel, boolean toASCII, in processUnicode() argument
215 toASCII ? (options&NONTRANSITIONAL_TO_ASCII)==0 : in processUnicode()
224 toASCII, info); in processUnicode()
258 processLabel(dest, labelStart, labelLimit-labelStart, toASCII, info); in processUnicode()
333 boolean toASCII, in processLabel() argument
350 return markBadACELabel(dest, labelStart, labelLength, toASCII, info); in processLabel()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Duts46.cpp154 UBool isLabel, UBool toASCII,
160 UBool isLabel, UBool toASCII,
167 UBool isLabel, UBool toASCII,
180 UBool toASCII,
185 UBool toASCII, IDNAInfo &info, UErrorCode &errorCode) const;
303 UBool isLabel, UBool toASCII, in process() argument
338 if(toASCII) { in process()
385 if(toASCII && (i-labelStart)>63) { in process()
396 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info, errorCode); in process()
407 UBool isLabel, UBool toASCII, in processUTF8() argument
[all …]
/third_party/node/doc/api/
Dpunycode.md74 ## `punycode.toASCII(domain)`
82 The `punycode.toASCII()` method converts a Unicode string representing an
84 domain name will be converted. Calling `punycode.toASCII()` on a string that
89 punycode.toASCII('mañana.com'); // 'xn--maana-pta.com'
90 punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com'
91 punycode.toASCII('example.com'); // 'example.com'
/third_party/node/lib/internal/
Didna.js3 const { toASCII, toUnicode } = internalBinding('url');
4 module.exports = { toASCII, toUnicode }; property
/third_party/node/benchmark/misc/
Dpunycode.js42 punycode.toUnicode(punycode.toASCII(val));
46 icu.toUnicode(icu.toASCII(val));
/third_party/node/lib/internal/dns/
Dcallback_resolver.js10 const { toASCII } = require('internal/idna');
73 const err = this._handle[bindingName](req, toASCII(name));
Dpromises.js49 const { toASCII } = require('internal/idna');
141 const err = getaddrinfo(req, toASCII(hostname), family, hints, verbatim);
277 const err = resolver._handle[bindingName](req, toASCII(hostname));
/third_party/icu/icu4c/source/test/intltest/
Dtestidna.h80 void testChaining(const char* toASCIIName, TestFunc toASCII,
110 void testConformance(const char* toASCIIName, TestFunc toASCII,
Dtestidna.cpp1158 void TestIDNA::testChaining(const char* toASCIIName, TestFunc toASCII, in testChaining() argument
1168 testChaining(unicodeIn[i], 5,toASCIIName, false, true, toASCII); in testChaining()
/third_party/node/lib/
Dpunycode.js418 const toASCII = function(input) { function
449 'toASCII': toASCII, property
Ddns.js31 const { toASCII } = require('internal/idna');
223 req, toASCII(hostname), family, hints, verbatim,
Durl.js34 const { toASCII } = require('internal/idna');
430 this.hostname = toASCII(this.hostname);
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/stringprep/
DTestIDNA.java662 … private StringBuffer _doTestCompareReferenceImpl(StringBuffer src, boolean toASCII, int options) { in _doTestCompareReferenceImpl() argument
663 … String refIDNAName = toASCII ? "IDNAReference.convertToASCII" : "IDNAReference.convertToUnicode"; in _doTestCompareReferenceImpl()
664 String uIDNAName = toASCII ? "IDNA.convertToASCII" : "IDNA.convertToUnicode"; in _doTestCompareReferenceImpl()
672 …exp = toASCII ? IDNAReference.convertToASCII(src, options) : IDNAReference.convertToUnicode(src, o… in _doTestCompareReferenceImpl()
680 got = toASCII ? IDNA.convertToASCII(src, options) : IDNA.convertToUnicode(src, options); in _doTestCompareReferenceImpl()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DTestIDNA.java659 … private StringBuffer _doTestCompareReferenceImpl(StringBuffer src, boolean toASCII, int options) { in _doTestCompareReferenceImpl() argument
660 … String refIDNAName = toASCII ? "IDNAReference.convertToASCII" : "IDNAReference.convertToUnicode"; in _doTestCompareReferenceImpl()
661 String uIDNAName = toASCII ? "IDNA.convertToASCII" : "IDNA.convertToUnicode"; in _doTestCompareReferenceImpl()
669 …exp = toASCII ? IDNAReference.convertToASCII(src, options) : IDNAReference.convertToUnicode(src, o… in _doTestCompareReferenceImpl()
677 got = toASCII ? IDNA.convertToASCII(src, options) : IDNA.convertToUnicode(src, options); in _doTestCompareReferenceImpl()
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/data/unicode/
DIdnaTestV2.txt30 # Column 4: toAsciiN - The result of applying toASCII to the source,
36 # Column 6: toAsciiT - The result of applying toASCII to the source,
89 # The special error codes X3 and X4_2 are now returned where a toASCII error code
/third_party/icu/icu4c/source/test/testdata/
DIdnaTestV2.txt30 # Column 4: toAsciiN - The result of applying toASCII to the source,
36 # Column 6: toAsciiT - The result of applying toASCII to the source,
89 # The special error codes X3 and X4_2 are now returned where a toASCII error code
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode/
DIdnaTestV2.txt30 # Column 4: toAsciiN - The result of applying toASCII to the source,
36 # Column 6: toAsciiT - The result of applying toASCII to the source,
89 # The special error codes X3 and X4_2 are now returned where a toASCII error code
/third_party/node/doc/changelogs/
DCHANGELOG_V17.md1515 …R)** **url**: forbid certain confusable changes from being introduced by toASCII (Timothy Gu) [#38…
DCHANGELOG_V7.md1748 * \[[`956239124d`](https://github.com/nodejs/node/commit/956239124d)] - **test**: add toASCII and t…
DCHANGELOG_V4.md837 * \[[`33da22aba1`](https://github.com/nodejs/node/commit/33da22aba1)] - **test**: add toASCII and t…

12