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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 {"xn--b1-xi4a7cvc9f.com", L"\x30d3\x30bf\x30df\x30f3" L"b1.com", true}, | 197 {"xn--b1-xi4a7cvc9f.com", L"\x30d3\x30bf\x30df\x30f3" L"b1.com", true}, |
198 // Devanagari + Han | 198 // Devanagari + Han |
199 {"xn--t2bes3ds6749n.com", L"\x0930\x094b\x0932\x0947\x76e7\x0938.com", false}, | 199 {"xn--t2bes3ds6749n.com", L"\x0930\x094b\x0932\x0947\x76e7\x0938.com", false}, |
200 // Devanagari + Bengali | 200 // Devanagari + Bengali |
201 {"xn--11b0x.in", L"\x0915\x0995.in", false}, | 201 {"xn--11b0x.in", L"\x0915\x0995.in", false}, |
202 // Canadian Syllabary + Latin | 202 // Canadian Syllabary + Latin |
203 {"xn--ab-lym.com", L"ab\x14BF.com", false}, | 203 {"xn--ab-lym.com", L"ab\x14BF.com", false}, |
204 {"xn--ab1-p6q.com", L"ab1\x14BF.com", false}, | 204 {"xn--ab1-p6q.com", L"ab1\x14BF.com", false}, |
205 {"xn--1ab-m6qd.com", L"\x14BF" L"1ab.com", false}, | 205 {"xn--1ab-m6qd.com", L"\x14BF" L"1ab.com", false}, |
206 {"xn--ab-jymc.com", L"\x14BF" L"ab.com", false}, | 206 {"xn--ab-jymc.com", L"\x14BF" L"ab.com", false}, |
| 207 // Tifinagh + Latin |
| 208 {"xn--liy-go4a.com", L"li\u24dfy.com", false}, |
| 209 {"xn--rol-ho4a.com", L"rol\u24df.com", false}, |
| 210 {"xn--ily-eo4a.com", L"\u24dfily.com", false}, |
| 211 {"xn--1ly-eo4a.com", L"\u24df1ly.com", false}, |
207 | 212 |
208 // Invisibility check | 213 // Invisibility check |
209 // Thai tone mark malek(U+0E48) repeated | 214 // Thai tone mark malek(U+0E48) repeated |
210 {"xn--03c0b3ca.th", L"\x0e23\x0e35\x0e48\x0e48.th", false}, | 215 {"xn--03c0b3ca.th", L"\x0e23\x0e35\x0e48\x0e48.th", false}, |
211 // Accute accent repeated | 216 // Accute accent repeated |
212 {"xn--a-xbba.com", L"a\x0301\x0301.com", false}, | 217 {"xn--a-xbba.com", L"a\x0301\x0301.com", false}, |
213 // 'a' with acuted accent + another acute accent | 218 // 'a' with acuted accent + another acute accent |
214 {"xn--1ca20i.com", L"\x00e1\x0301.com", false}, | 219 {"xn--1ca20i.com", L"\x00e1\x0301.com", false}, |
215 // Combining mark at the beginning | 220 // Combining mark at the beginning |
216 {"xn--abc-fdc.jp", L"\x0300" L"abc.jp", false}, | 221 {"xn--abc-fdc.jp", L"\x0300" L"abc.jp", false}, |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos, | 1049 0, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 0, kNpos, kNpos, kNpos, kNpos, |
1045 0, 1, 2, 3, 4, 5, 6, 7 | 1050 0, 1, 2, 3, 4, 5, 6, 7 |
1046 }; | 1051 }; |
1047 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll, | 1052 CheckAdjustedOffsets("http://user@foo.com/", kFormatUrlOmitAll, |
1048 net::UnescapeRule::NORMAL, omit_all_offsets); | 1053 net::UnescapeRule::NORMAL, omit_all_offsets); |
1049 } | 1054 } |
1050 | 1055 |
1051 } // namespace | 1056 } // namespace |
1052 | 1057 |
1053 } // namespace url_formatter | 1058 } // namespace url_formatter |
OLD | NEW |