Changeset 19351 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
r19350 r19351 1682 1682 "wf", // Wallis and Futuna 1683 1683 "ws", // Samoa (formerly Western Samoa) 1684 "xn--2scrj9c", // ಭಾರತ National Internet eXchange of India 1684 1685 "xn--3e0b707e", // 한국 KISA (Korea Internet & Security Agency) 1686 "xn--3hcrj9c", // ଭାରତ National Internet eXchange of India 1687 "xn--45br5cyl", // ভাৰত National Internet eXchange of India 1685 1688 "xn--45brj9c", // ভারত National Internet Exchange of India 1689 "xn--54b7fta0cc", // বাং Posts and Telecommunications Division 1686 1690 "xn--80ao21a", // қаз Association of IT Companies of Kazakhstan 1687 1691 "xn--90a3ac", // срб Serbian National Internet Domain Registry (RNIDS) 1688 "xn--90ais", // ??? Reliable Software Inc. 1692 "xn--90ae", // бг Imena.BG AD 1693 "xn--90ais", // бел Reliable Software Inc. 1689 1694 "xn--clchc0ea0b2g2a9gcd", // சிங்கப்பூர் Singapore Network Information Centre (SGNIC) Pte Ltd 1690 1695 "xn--d1alf", // мкд Macedonian Academic Research Network Skopje … … 1695 1700 "xn--fzc2c9e2c", // ලංකා LK Domain Registry 1696 1701 "xn--gecrj9c", // ભારત National Internet Exchange of India 1702 "xn--h2breg3eve", // भारतम् National Internet eXchange of India 1703 "xn--h2brj9c8c", // भारोत National Internet eXchange of India 1697 1704 "xn--h2brj9c", // भारत National Internet Exchange of India 1698 1705 "xn--j1amh", // укр Ukrainian Network Information Centre (UANIC), Inc. … … 1705 1712 "xn--mgba3a4f16a", // ایران Institute for Research in Fundamental Sciences (IPM) 1706 1713 "xn--mgbaam7a8h", // امارات Telecommunications Regulatory Authority (TRA) 1714 "xn--mgbah1a3hjkrd", // موريتانيا Université de Nouakchott Al Aasriya 1715 "xn--mgbai9azgqp6j", // پاکستان National Telecommunication Corporation 1707 1716 "xn--mgbayh7gpa", // الاردن National Information Technology Center (NITC) 1708 1717 "xn--mgbbh1a71e", // بھارت National Internet Exchange of India 1718 "xn--mgbbh1a", // بارت National Internet eXchange of India 1709 1719 "xn--mgbc0a9azcg", // المغرب Agence Nationale de Réglementation des Télécommunications (ANRT) 1720 "xn--mgbcpq6gpa1a", // البحرين Telecommunications Regulatory Authority (TRA) 1710 1721 "xn--mgberp4a5d4ar", // السعودية Communications and Information Technology Commission 1711 "xn--mgbpl2fh", // ????? Sudan Internet Society 1722 "xn--mgbgu82a", // ڀارت National Internet eXchange of India 1723 "xn--mgbpl2fh", // سودان Sudan Internet Society 1712 1724 "xn--mgbtx2b", // عراق Communications and Media Commission (CMC) 1713 1725 "xn--mgbx4cd0ab", // مليسيا MYNIC Berhad … … 1718 1730 "xn--p1ai", // рф Coordination Center for TLD RU 1719 1731 "xn--pgbs0dh", // تونس Agence Tunisienne d'Internet 1732 "xn--q7ce6a", // ລາວ Lao National Internet Center (LANIC), Ministry of Technology and Communications 1720 1733 "xn--qxam", // ελ ICS-FORTH GR 1734 "xn--rvc1e0am3e", // ഭാരതം National Internet eXchange of India 1721 1735 "xn--s9brj9c", // ਭਾਰਤ National Internet Exchange of India 1722 1736 "xn--wgbh1c", // مصر National Telecommunication Regulatory Authority - NTRA … … 1724 1738 "xn--xkc2al3hye2a", // இலங்கை LK Domain Registry 1725 1739 "xn--xkc2dl3a5ee0h", // இந்தியா National Internet Exchange of India 1726 "xn--y9a3aq", // ???Internet Society1740 "xn--y9a3aq", // հայ Internet Society 1727 1741 "xn--yfro4i67o", // 新加坡 Singapore Network Information Centre (SGNIC) Pte Ltd 1728 1742 "xn--ygbi2ammx", // فلسطين Ministry of Telecom & Information Technology (MTIT) -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTestIT.java
r19223 r19351 110 110 Map<String, String> missingTLD = new TreeMap<>(); // stores entry and comments as String[] 111 111 Map<String, String> missingCC = new TreeMap<>(); 112 Map<String, String> allTLD = new TreeMap<>(); // stores entry and comments as String[] 113 Map<String, String> allCC = new TreeMap<>(); // stores entry and comments as String[] 112 114 while ((line = br.readLine()) != null) { 113 115 if (!line.startsWith("#")) { … … 121 123 if (!dv.isValidTld(asciiTld)) { 122 124 String[] info = htmlInfo.get(asciiTld); 125 String type = info[0]; 126 String comment = info[1]; 127 if ("country-code".equals(type)) { // Which list to use? 128 allCC.put(asciiTld, unicodeTld + " " + comment); 129 if (generateUnicodeTlds) { 130 allCC.put(unicodeTld, asciiTld + " " + comment); 131 } 132 } else { 133 allTLD.put(asciiTld, unicodeTld + " " + comment); 134 if (generateUnicodeTlds) { 135 allTLD.put(unicodeTld, asciiTld + " " + comment); 136 } 137 } 123 138 if (info != null) { 124 String type = info[0];125 String comment = info[1];126 139 if ("country-code".equals(type)) { // Which list to use? 127 140 missingCC.put(asciiTld, unicodeTld + " " + comment); … … 158 171 } 159 172 } 173 printMap(header, allTLD, "allTLD"); 174 printMap(header, allCC, "allCC"); 160 175 if (!missingTLD.isEmpty()) { 161 176 printMap(header, missingTLD, "TLD");
Note:
See TracChangeset
for help on using the changeset viewer.