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

Function utf8_literal

cpp/gdb_arrow.py:197–207  ·  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

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