OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 Google Inc. All rights reserved. | 2 # Copyright (c) 2011 Google Inc. All rights reserved. |
3 # Copyright (c) 2012 Intel Corporation. All rights reserved. | 3 # Copyright (c) 2012 Intel Corporation. All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 possible_abbreviation = "".join(output[array_pos:array_p
os_end]) | 149 possible_abbreviation = "".join(output[array_pos:array_p
os_end]) |
150 if possible_abbreviation.upper() in Capitalizer.ABBREVIA
TION: | 150 if possible_abbreviation.upper() in Capitalizer.ABBREVIA
TION: |
151 output[array_pos:array_pos_end] = [possible_abbrevia
tion] | 151 output[array_pos:array_pos_end] = [possible_abbrevia
tion] |
152 else: | 152 else: |
153 array_pos = array_pos_end - 1 | 153 array_pos = array_pos_end - 1 |
154 array_pos += 1 | 154 array_pos += 1 |
155 return output | 155 return output |
156 | 156 |
157 ABBREVIATION = frozenset(["XHR", "DOM", "CSS"]) | 157 ABBREVIATION = frozenset(["XHR", "DOM", "CSS"]) |
158 | 158 |
159 VALIDATOR_IFDEF_NAME = "!ASSERT_DISABLED" | 159 VALIDATOR_IFDEF_NAME = "ASSERT_ENABLED" |
160 | 160 |
161 | 161 |
162 class DomainNameFixes: | 162 class DomainNameFixes: |
163 @classmethod | 163 @classmethod |
164 def get_fixed_data(cls, domain_name): | 164 def get_fixed_data(cls, domain_name): |
165 field_name_res = Capitalizer.upper_camel_case_to_lower(domain_name) + "A
gent" | 165 field_name_res = Capitalizer.upper_camel_case_to_lower(domain_name) + "A
gent" |
166 | 166 |
167 class Res(object): | 167 class Res(object): |
168 agent_field_name = field_name_res | 168 agent_field_name = field_name_res |
169 | 169 |
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 validatorIfdefName=VALIDATOR_IFDEF_NAME)) | 2355 validatorIfdefName=VALIDATOR_IFDEF_NAME)) |
2356 | 2356 |
2357 backend_h_file.close() | 2357 backend_h_file.close() |
2358 backend_cpp_file.close() | 2358 backend_cpp_file.close() |
2359 | 2359 |
2360 frontend_h_file.close() | 2360 frontend_h_file.close() |
2361 frontend_cpp_file.close() | 2361 frontend_cpp_file.close() |
2362 | 2362 |
2363 typebuilder_h_file.close() | 2363 typebuilder_h_file.close() |
2364 typebuilder_cpp_file.close() | 2364 typebuilder_cpp_file.close() |
OLD | NEW |