MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _escape_cpp_string_literal

Function _escape_cpp_string_literal

python/tvm_ffi/cpp/extension.py:625–627  ·  view source on GitHub ↗

Escape special characters for C++ string literals.

(s: str)

Source from the content-addressed store, hash-verified

623
624
625def _escape_cpp_string_literal(s: str) -> str:
626 """Escape special characters for C++ string literals."""
627 return s.translate(_CPP_ESCAPE_TABLE)
628
629
630def _decorate_with_tvm_ffi(source: str, functions: Mapping[str, str]) -> str:

Callers 1

_decorate_with_tvm_ffiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected