| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 import os.path | 29 import os.path |
| 30 import re | 30 import re |
| 31 | 31 |
| 32 | 32 |
| 33 ACRONYMS = [ | 33 ACRONYMS = [ |
| 34 'CSSOM', |
| 34 'CSS', | 35 'CSS', |
| 35 'DNS', | 36 'DNS', |
| 36 'FE', | 37 'FE', |
| 37 'FTP', | 38 'FTP', |
| 38 'HTML', | 39 'HTML', |
| 39 'IME', | 40 'IME', |
| 40 'JS', | 41 'JS', |
| 41 'SVG', | 42 'SVG', |
| 42 'URL', | 43 'URL', |
| 43 'WOFF', | 44 'WOFF', |
| (...skipping 27 matching lines...) Expand all Loading... |
| 71 | 72 |
| 72 | 73 |
| 73 def script_name(entry): | 74 def script_name(entry): |
| 74 return os.path.basename(entry["name"]) | 75 return os.path.basename(entry["name"]) |
| 75 | 76 |
| 76 | 77 |
| 77 def cpp_name(entry): | 78 def cpp_name(entry): |
| 78 if entry['ImplementedAs']: | 79 if entry['ImplementedAs']: |
| 79 return entry['ImplementedAs'] | 80 return entry['ImplementedAs'] |
| 80 return script_name(entry) | 81 return script_name(entry) |
| OLD | NEW |