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

Function undefquote

scripts/add_validusage_pages.py:47–53  ·  view source on GitHub ↗

Quote a string, or return a default value if the string is None.

(s, default='undefined')

Source from the content-addressed store, hash-verified

45Images = 'images'
46
47def undefquote(s, default='undefined'):
48 """Quote a string, or return a default value if the string is None."""
49
50 if s is not None:
51 return enquote(s)
52 else:
53 return 'undefined'
54
55if __name__ == '__main__':
56 parser = argparse.ArgumentParser()

Callers

nothing calls this directly

Calls 1

enquoteFunction · 0.90

Tested by

no test coverage detected