Returns whether oldname and newname match, up to an API suffix. This should use the API map instead of this heuristic, since aliases like VkPhysicalDeviceVariablePointerFeaturesKHR -> VkPhysicalDeviceVariablePointersFeatures are not recognized.
(self, oldname, newname)
| 327 | self.state.addLine(line, indent) |
| 328 | |
| 329 | def apiMatch(self, oldname, newname): |
| 330 | """Returns whether oldname and newname match, up to an API suffix. |
| 331 | This should use the API map instead of this heuristic, since aliases |
| 332 | like VkPhysicalDeviceVariablePointerFeaturesKHR -> |
| 333 | VkPhysicalDeviceVariablePointersFeatures are not recognized.""" |
| 334 | upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 335 | return oldname.rstrip(upper) == newname.rstrip(upper) |
| 336 | |
| 337 | def transformFile(self, lines): |
| 338 | """Transform lines, and possibly output to the given file.""" |