MCPcopy Index your code
hub / github.com/ScrapeGraphAI/toonify / quote_string

Function quote_string

toon/utils.py:117–128  ·  view source on GitHub ↗

Quote and escape a string for TOON encoding. Args: value: String to quote Returns: Quoted and escaped string

(value: str)

Source from the content-addressed store, hash-verified

115
116
117def quote_string(value: str) -> str:
118 """
119 Quote and escape a string for TOON encoding.
120
121 Args:
122 value: String to quote
123
124 Returns:
125 Quoted and escaped string
126 """
127 escaped = escape_string(value)
128 return f'{QUOTE}{escaped}{QUOTE}'
129
130
131def is_primitive(value: Any) -> bool:

Callers 3

_encode_valueFunction · 0.85
_encode_primitive_arrayFunction · 0.85
_encode_primitive_valueFunction · 0.85

Calls 1

escape_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…