| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2010 Google Inc. All rights reserved. | 2 # Copyright (c) 2010 Google Inc. All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 93 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 94 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 94 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 95 */ | 95 */ |
| 96 | 96 |
| 97 // THIS FILE IS GENERATED BY core/html/parser/create-html-entity-table | 97 // THIS FILE IS GENERATED BY core/html/parser/create-html-entity-table |
| 98 // DO NOT EDIT (unless you are a ninja)! | 98 // DO NOT EDIT (unless you are a ninja)! |
| 99 | 99 |
| 100 #include "config.h" | 100 #include "config.h" |
| 101 #include "core/html/parser/HTMLEntityTable.h" | 101 #include "core/html/parser/HTMLEntityTable.h" |
| 102 | 102 |
| 103 namespace WebCore { | 103 namespace blink { |
| 104 | 104 |
| 105 namespace { | 105 namespace { |
| 106 """) | 106 """) |
| 107 | 107 |
| 108 assert len(entries) > 0, "Code assumes a non-empty entity array." | 108 assert len(entries) > 0, "Code assumes a non-empty entity array." |
| 109 def check_ascii(entity_string): | 109 def check_ascii(entity_string): |
| 110 for c in entity_string: | 110 for c in entity_string: |
| 111 code = ord(c) | 111 code = ord(c) |
| 112 assert 0 <= code <= 127, (c + " is not ASCII. Need to change type " + | 112 assert 0 <= code <= 127, (c + " is not ASCII. Need to change type " + |
| 113 "of storage from LChar to UChar to support " + | 113 "of storage from LChar to UChar to support " + |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 return &staticEntityTable[0]; | 233 return &staticEntityTable[0]; |
| 234 } | 234 } |
| 235 | 235 |
| 236 const HTMLEntityTableEntry* HTMLEntityTable::lastEntry() | 236 const HTMLEntityTableEntry* HTMLEntityTable::lastEntry() |
| 237 { | 237 { |
| 238 return &staticEntityTable[%s - 1]; | 238 return &staticEntityTable[%s - 1]; |
| 239 } | 239 } |
| 240 | 240 |
| 241 } | 241 } |
| 242 """ % entity_count) | 242 """ % entity_count) |
| OLD | NEW |