MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _ascii

Function _ascii

scripts/docs/generate_rust_library_reference.py:80–82  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

78
79
80def _ascii(value: str) -> str:
81 value = value.translate(TRANSLATION_TABLE)
82 return value.encode("ascii", "xmlcharrefreplace").decode("ascii")
83
84
85def _escape_text(value: str) -> str:

Callers 4

_clean_textFunction · 0.85
_clean_codeFunction · 0.85
_html_textFunction · 0.85
_html_attrFunction · 0.85

Calls 3

decodeMethod · 0.65
encodeMethod · 0.65
translateMethod · 0.45

Tested by

no test coverage detected