MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / apiMatch

Method apiMatch

scripts/doctransformer.py:329–335  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 1

transformFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected