MCPcopy Create free account
hub / github.com/apache/arrow / utf8_literal

Function utf8_literal

cpp/gdb_arrow.py:195–205  ·  view source on GitHub ↗

Format a gdb.Value for display as a utf-8 literal.

(val, size=None)

Source from the content-addressed store, hash-verified

193
194
195def utf8_literal(val, size=None):
196 """
197 Format a gdb.Value for display as a utf-8 literal.
198 """
199 if size is None:
200 s = val.string(encoding='utf8', errors='backslashreplace')
201 elif size != 0:
202 s = val.string(encoding='utf8', errors='backslashreplace', length=size)
203 else:
204 s = ""
205 return string_literal(s)
206
207
208def half_float_value(val):

Callers 1

_format_bufMethod · 0.85

Calls 2

string_literalFunction · 0.85
stringMethod · 0.45

Tested by

no test coverage detected