MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / apiSortKey

Function apiSortKey

scripts/genRef.py:925–934  ·  view source on GitHub ↗

Sort on refpage names not considering any 'vk' prefix

(name)

Source from the content-addressed store, hash-verified

923 # API map, and entry points in the API map not found in the refpages.
924
925 def apiSortKey(name):
926 """Sort on refpage names not considering any 'vk' prefix"""
927 name = name.upper()
928
929 if name[0:3] == 'VK_':
930 return name[3:]
931 elif name[0:2] == 'VK':
932 return name[2:]
933 else:
934 return name
935
936 # Look over each refpage type, generating a sorted navigation index of
937 # the pages belonging to it.

Callers 1

genAntoraNavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected