| OLD | NEW |
| 1 library constants; | 1 library constants; |
| 2 | 2 |
| 3 import 'utils.dart'; | 3 import 'utils.dart'; |
| 4 | 4 |
| 5 // TODO(jmesserly): fix up the const lists. For the bigger ones, we need faster | 5 // TODO(jmesserly): fix up the const lists. For the bigger ones, we need faster |
| 6 // lookup than linear search "contains". In the Python code they were | 6 // lookup than linear search "contains". In the Python code they were |
| 7 // frozensets. | 7 // frozensets. |
| 8 | 8 |
| 9 final String EOF = null; | 9 final String EOF = null; |
| 10 | 10 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 Namespaces._(); | 309 Namespaces._(); |
| 310 | 310 |
| 311 static String getPrefix(String url) { | 311 static String getPrefix(String url) { |
| 312 switch (url) { | 312 switch (url) { |
| 313 case html: return 'html'; | 313 case html: return 'html'; |
| 314 case mathml: return 'math'; | 314 case mathml: return 'math'; |
| 315 case svg: return 'svg'; | 315 case svg: return 'svg'; |
| 316 case xlink: return 'xlink'; | 316 case xlink: return 'xlink'; |
| 317 case xml: return 'xml'; | 317 case xml: return 'xml'; |
| 318 case xmlns: return 'xmlns'; | 318 case xmlns: return 'xmlns'; |
| 319 default: throw new ArgumentError(url); | 319 default: return null; |
| 320 } | 320 } |
| 321 } | 321 } |
| 322 } | 322 } |
| 323 | 323 |
| 324 const List scopingElements = const [ | 324 const List scopingElements = const [ |
| 325 const Pair(Namespaces.html, "applet"), | 325 const Pair(Namespaces.html, "applet"), |
| 326 const Pair(Namespaces.html, "caption"), | 326 const Pair(Namespaces.html, "caption"), |
| 327 const Pair(Namespaces.html, "html"), | 327 const Pair(Namespaces.html, "html"), |
| 328 const Pair(Namespaces.html, "marquee"), | 328 const Pair(Namespaces.html, "marquee"), |
| 329 const Pair(Namespaces.html, "object"), | 329 const Pair(Namespaces.html, "object"), |
| (...skipping 2783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3113 'windows1252': 'cp1252', | 3113 'windows1252': 'cp1252', |
| 3114 'windows1253': 'cp1253', | 3114 'windows1253': 'cp1253', |
| 3115 'windows1254': 'cp1254', | 3115 'windows1254': 'cp1254', |
| 3116 'windows1255': 'cp1255', | 3116 'windows1255': 'cp1255', |
| 3117 'windows1256': 'cp1256', | 3117 'windows1256': 'cp1256', |
| 3118 'windows1257': 'cp1257', | 3118 'windows1257': 'cp1257', |
| 3119 'windows1258': 'cp1258', | 3119 'windows1258': 'cp1258', |
| 3120 'windows936': 'gbk', | 3120 'windows936': 'gbk', |
| 3121 'x-x-big5': 'big5' | 3121 'x-x-big5': 'big5' |
| 3122 }; | 3122 }; |
| OLD | NEW |