| Index: Source/bindings/scripts/unstable/v8_utilities.py
|
| diff --git a/Source/bindings/scripts/unstable/v8_utilities.py b/Source/bindings/scripts/unstable/v8_utilities.py
|
| index 9b72ab2ac8c2d72d24135a1641e44c97667851a4..93f99e6e89471643ca05a2d30016b082f98b3479 100644
|
| --- a/Source/bindings/scripts/unstable/v8_utilities.py
|
| +++ b/Source/bindings/scripts/unstable/v8_utilities.py
|
| @@ -52,6 +52,23 @@ def has_extended_attribute_value(extended_attributes, key, value):
|
| value in re.split('[|&]', extended_attributes[key]))
|
|
|
|
|
| +def capitalize(name):
|
| + """Capitalize first letter or initial acronym (* with some exceptions).
|
| +
|
| + Used in setter names.
|
| + """
|
| + name = name[0].upper() + name[1:]
|
| + # xmlEncoding becomes XMLEncoding, but xmlllang becomes Xmllang.
|
| + # FIXME: Remove these special cases
|
| + if name.startswith('CssText') or re.match('Xml[a-z]', name):
|
| + return name
|
| + for acronym in ACRONYMS:
|
| + if name.startswith(acronym.capitalize()):
|
| + name.replace(acronym.capitalize(), acronym)
|
| + return name
|
| + return name
|
| +
|
| +
|
| def uncapitalize(name):
|
| """Uncapitalizes first letter or initial acronym (* with some exceptions).
|
|
|
|
|