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

Function noneStr

scripts/generator.py:32–39  ·  view source on GitHub ↗

Return string argument, or "" if argument is None. Used in converting etree Elements into text. s - string to convert

(s)

Source from the content-addressed store, hash-verified

30
31
32def noneStr(s):
33 """Return string argument, or "" if argument is None.
34
35 Used in converting etree Elements into text.
36 s - string to convert"""
37 if s:
38 return s
39 return ""
40
41
42def enquote(s):

Callers 7

genTypeMethod · 0.90
genTypeMethod · 0.90
genTypeMethod · 0.90
parseTreeMethod · 0.90
makeCParamDeclMethod · 0.70
getCParamTypeLengthMethod · 0.70
makeCDeclsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected