OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 import re | 5 import re |
6 | 6 |
7 html_interface_renames = { | 7 html_interface_renames = { |
8 'CDATASection': 'CDataSection', | 8 'CDATASection': 'CDataSection', |
9 'DOMApplicationCache': 'ApplicationCache', | 9 'DOMApplicationCache': 'ApplicationCache', |
10 'DOMCoreException': 'DomException', | 10 'DOMCoreException': 'DomException', |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 422 |
423 # We're looking for a sequence of letters which start with capital letter | 423 # We're looking for a sequence of letters which start with capital letter |
424 # then a series of caps and finishes with either the end of the string or | 424 # then a series of caps and finishes with either the end of the string or |
425 # a capital letter. | 425 # a capital letter. |
426 # The [0-9] check is for names such as 2D or 3D | 426 # The [0-9] check is for names such as 2D or 3D |
427 # The following test cases should match as: | 427 # The following test cases should match as: |
428 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 428 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
429 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 429 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
430 # IFrameElement: (I)()(F)rameElement (no change) | 430 # IFrameElement: (I)()(F)rameElement (no change) |
431 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 431 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |