/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
IDNTest.java | 26 * {@link java.net.IDN#toASCII(String)} 31 IDN.toASCII(null); 38 IDN.toASCII("www.m\uE400kitorppa.edu"); 45 IDN.toASCII("www.\u672C\uFE73\uFFFF.jp"); 52 .toASCII("www.\u65E5\u672C\u5E73.jp")); 56 .toASCII("www.\u30CF\u30F3\u30C9\u30DC\u30FC\u30EB\u30B5\u30E0\u30BA.com")); 58 .toASCII("www.f\u00E4rgbolaget.nu")); 59 assertEquals("www.xn--bcher-kva.de", IDN.toASCII("www.b\u00FCcher.de")); 61 .toASCII("www.br\u00E6ndendek\u00E6rlighed.com")); 63 .toASCII("www.r\u00E4ksm\u00F6rg\u00E5s.se")) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
IdnBenchmark.java | 25 IDN.toASCII("fass.de"); 26 IDN.toASCII("faß.de"); 27 IDN.toASCII("fäß.de"); 28 IDN.toASCII("a\u200Cb"); 29 IDN.toASCII("öbb.at"); 30 IDN.toASCII("abc???.co.jp"); 31 IDN.toASCII("??.co.jp"); 32 IDN.toASCII("x\u0327\u0301.de"); 33 IDN.toASCII("?????.gr");
|
/libcore/ojluni/src/main/java/java/net/ |
IDN.java | 40 * RFC 3490 defines two operations: ToASCII and ToUnicode. These 2 operations employ 83 * as defined by the ToASCII operation of <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>. 85 * <p>ToASCII operation can fail. ToASCII fails if any step of it fails. 86 * If ToASCII operation fails, an IllegalArgumentException will be thrown. 89 * <p> A label is an individual part of a domain name. The original ToASCII operation, 105 public static String toASCII(String input, int flag) { 110 throw new IllegalArgumentException("Invalid input to toASCII: " + input, e); 118 * as defined by the ToASCII operation of <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>. 123 * {@link #toASCII(String, int) toASCII}(input, 0) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UTS46.java | 115 boolean isLabel, boolean toASCII, 138 if(toASCII) { 158 break; // Replacing with U+FFFD can be complicated for toASCII. 177 // Replacing with U+FFFD can be complicated for toASCII. 184 if(toASCII && (i-labelStart)>63) { 193 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info); 205 boolean isLabel, boolean toASCII, 214 toASCII ? (options&NONTRANSITIONAL_TO_ASCII)==0 : 223 toASCII, info); 245 processLabel(dest, labelStart, labelLimit-labelStart, toASCII, info) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
UTS46.java | 114 boolean isLabel, boolean toASCII, 137 if(toASCII) { 157 break; // Replacing with U+FFFD can be complicated for toASCII. 176 // Replacing with U+FFFD can be complicated for toASCII. 183 if(toASCII && (i-labelStart)>63) { 192 processUnicode(src, labelStart, i, isLabel, toASCII, dest, info); 204 boolean isLabel, boolean toASCII, 213 toASCII ? (options&NONTRANSITIONAL_TO_ASCII)==0 : 222 toASCII, info); 244 processLabel(dest, labelStart, labelLimit-labelStart, toASCII, info) [all...] |
/external/icu/icu4c/source/test/intltest/ |
testidna.h | 79 void testChaining(const char* toASCIIName, TestFunc toASCII, 109 void testConformance(const char* toASCIIName, TestFunc toASCII,
|
testidna.cpp | 762 //test toASCII with all labels in the string [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SNIHostName.java | 72 * (IDN). {@link IDN#toASCII(String, int)} is used to enforce the 79 * IDN.toASCII(hostname, IDN.USE_STD3_ASCII_RULES); 99 (hostname = IDN.toASCII( 126 * {@link StandardCharsets#US_ASCII}. {@link IDN#toASCII(String)} is used 175 this.hostname = IDN.toASCII(
|
/prebuilts/go/darwin-x86/src/net/http/cookiejar/ |
punycode.go | 132 // toASCII converts a domain or domain label to its ASCII form. For example, 133 // toASCII("bücher.example.com") is "xn--bcher-kva.example.com", and 134 // toASCII("golang") is "golang". 135 func toASCII(s string) (string, error) {
|
jar.go | 309 return toASCII(host)
|
/prebuilts/go/linux-x86/src/net/http/cookiejar/ |
punycode.go | 132 // toASCII converts a domain or domain label to its ASCII form. For example, 133 // toASCII("bücher.example.com") is "xn--bcher-kva.example.com", and 134 // toASCII("golang") is "golang". 135 func toASCII(s string) (string, error) {
|
jar.go | 309 return toASCII(host)
|
/external/icu/icu4c/source/common/ |
uts46.cpp | 154 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, 338 if(toASCII) { 359 break; // Replacing with U+FFFD can be complicated for toASCII. 378 // Replacing with U+FFFD can be complicated for toASCII. 385 if(toASCII && (i-labelStart)>63) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
TestIDNA.java | 294 //Test toASCII 346 // Test ToASCII 662 private StringBuffer _doTestCompareReferenceImpl(StringBuffer src, boolean toASCII, int options) { 663 String refIDNAName = toASCII ? "IDNAReference.convertToASCII" : "IDNAReference.convertToUnicode"; 664 String uIDNAName = toASCII ? "IDNA.convertToASCII" : "IDNA.convertToUnicode"; 672 exp = toASCII ? IDNAReference.convertToASCII(src, options) : IDNAReference.convertToUnicode(src, options); 680 got = toASCII ? IDNA.convertToASCII(src, options) : IDNA.convertToUnicode(src, options); [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
TestIDNA.java | 291 //Test toASCII 343 // Test ToASCII 659 private StringBuffer _doTestCompareReferenceImpl(StringBuffer src, boolean toASCII, int options) { 660 String refIDNAName = toASCII ? "IDNAReference.convertToASCII" : "IDNAReference.convertToUnicode"; 661 String uIDNAName = toASCII ? "IDNA.convertToASCII" : "IDNA.convertToUnicode"; 669 exp = toASCII ? IDNAReference.convertToASCII(src, options) : IDNAReference.convertToUnicode(src, options); 677 got = toASCII ? IDNA.convertToASCII(src, options) : IDNA.convertToUnicode(src, options); [all...] |
/prebuilts/go/darwin-x86/src/archive/tar/ |
strconv.go | 30 // toASCII converts the input to an ASCII C-style string. 32 func toASCII(s string) string {
|
writer.go | 200 fmtStr := func(b []byte, s string) { f.formatString(b, toASCII(s)) } 348 name = toASCII(name)
|
/prebuilts/go/linux-x86/src/archive/tar/ |
strconv.go | 30 // toASCII converts the input to an ASCII C-style string. 32 func toASCII(s string) string {
|
writer.go | 200 fmtStr := func(b []byte, s string) { f.formatString(b, toASCII(s)) } 348 name = toASCII(name)
|
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/idna/ |
idna.go | 43 // ToASCII is a wrapper for Punycode.ToASCII. 44 func ToASCII(s string) (string, error) { 195 // ToASCII converts a domain or domain label to its ASCII form. For example, 196 // ToASCII("bücher.example.com") is "xn--bcher-kva.example.com", and 197 // ToASCII("golang") is "golang". If an error is encountered it will return 199 func (p *Profile) ToASCII(s string) (string, error) { 301 func (p *Profile) process(s string, toASCII bool) (string, error) { 313 // It seems like we should only create this error on ToASCII, but the 361 if toASCII { [all...] |
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/idna/ |
idna.go | 43 // ToASCII is a wrapper for Punycode.ToASCII. 44 func ToASCII(s string) (string, error) { 195 // ToASCII converts a domain or domain label to its ASCII form. For example, 196 // ToASCII("bücher.example.com") is "xn--bcher-kva.example.com", and 197 // ToASCII("golang") is "golang". If an error is encountered it will return 199 func (p *Profile) ToASCII(s string) (string, error) { 301 func (p *Profile) process(s string, toASCII bool) (string, error) { 313 // It seems like we should only create this error on ToASCII, but the 361 if toASCII { [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
HttpUrl.java | 168 * <a href="http://www.unicode.org/reports/tr46/#ToASCII">IDNA Mapping</a> transforms names to avoid [all...] |
/prebuilts/misc/common/icu4j/ |
icu4j.jar | |
/prebuilts/misc/common/robolectric/3.1.1/lib/ |
icu4j-53.1.jar | |
/prebuilts/misc/common/robolectric/3.4.2/lib/ |
icu4j-53.1.jar | |