OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/url_formatter/url_formatter.h" | 5 #include "components/url_formatter/url_formatter.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 {"xn--b1-xi4a7cvc9f.com", L"\x30d3\x30bf\x30df\x30f3" L"b1.com", true}, | 184 {"xn--b1-xi4a7cvc9f.com", L"\x30d3\x30bf\x30df\x30f3" L"b1.com", true}, |
185 // Devanagari + Han | 185 // Devanagari + Han |
186 {"xn--t2bes3ds6749n.com", L"\x0930\x094b\x0932\x0947\x76e7\x0938.com", false}, | 186 {"xn--t2bes3ds6749n.com", L"\x0930\x094b\x0932\x0947\x76e7\x0938.com", false}, |
187 // Devanagari + Bengali | 187 // Devanagari + Bengali |
188 {"xn--11b0x.in", L"\x0915\x0995.in", false}, | 188 {"xn--11b0x.in", L"\x0915\x0995.in", false}, |
189 // Canadian Syllabary + Latin | 189 // Canadian Syllabary + Latin |
190 {"xn--ab-lym.com", L"ab\x14BF.com", false}, | 190 {"xn--ab-lym.com", L"ab\x14BF.com", false}, |
191 {"xn--ab1-p6q.com", L"ab1\x14BF.com", false}, | 191 {"xn--ab1-p6q.com", L"ab1\x14BF.com", false}, |
192 {"xn--1ab-m6qd.com", L"\x14BF" L"1ab.com", false}, | 192 {"xn--1ab-m6qd.com", L"\x14BF" L"1ab.com", false}, |
193 {"xn--ab-jymc.com", L"\x14BF" L"ab.com", false}, | 193 {"xn--ab-jymc.com", L"\x14BF" L"ab.com", false}, |
| 194 // Tifinagh + Latin |
| 195 {"xn--liy-go4a.com", L"li\u24dfy.com", false}, |
| 196 {"xn--rol-ho4a.com", L"rol\u24df.com", false}, |
| 197 {"xn--ily-eo4a.com", L"\u24dfily.com", false}, |
| 198 {"xn--1ly-eo4a.com", L"\u24df1ly.com", false}, |
194 | 199 |
195 // Invisibility check | 200 // Invisibility check |
196 // Thai tone mark malek(U+0E48) repeated | 201 // Thai tone mark malek(U+0E48) repeated |
197 {"xn--03c0b3ca.th", L"\x0e23\x0e35\x0e48\x0e48.th", false}, | 202 {"xn--03c0b3ca.th", L"\x0e23\x0e35\x0e48\x0e48.th", false}, |
198 // Accute accent repeated | 203 // Accute accent repeated |
199 {"xn--a-xbba.com", L"a\x0301\x0301.com", false}, | 204 {"xn--a-xbba.com", L"a\x0301\x0301.com", false}, |
200 // 'a' with acuted accent + another acute accent | 205 // 'a' with acuted accent + another acute accent |
201 {"xn--1ca20i.com", L"\x00e1\x0301.com", false}, | 206 {"xn--1ca20i.com", L"\x00e1\x0301.com", false}, |
202 // Combining mark at the beginning | 207 // Combining mark at the beginning |
203 {"xn--abc-fdc.jp", L"\x0300" L"abc.jp", false}, | 208 {"xn--abc-fdc.jp", L"\x0300" L"abc.jp", false}, |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos, | 1008 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos, |
1004 0, 1, 2, 3, 4, 5, 6, 7 | 1009 0, 1, 2, 3, 4, 5, 6, 7 |
1005 }; | 1010 }; |
1006 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll, | 1011 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll, |
1007 net::UnescapeRule::NORMAL, omit_all_offsets); | 1012 net::UnescapeRule::NORMAL, omit_all_offsets); |
1008 } | 1013 } |
1009 | 1014 |
1010 } // namespace | 1015 } // namespace |
1011 | 1016 |
1012 } // namespace url_formatter | 1017 } // namespace url_formatter |
OLD | NEW |