MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_needed_encoding

Function xo_needed_encoding

tools/libxo/libxo/libxo.c:2887–2897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2885}
2886
2887static int
2888xo_needed_encoding (xo_handle_t *xop)
2889{
2890 if (XOF_ISSET(xop, XOF_UTF8)) /* Check the override flag */
2891 return XF_ENC_UTF8;
2892
2893 if (xo_style(xop) == XO_STYLE_TEXT) /* Text means locale */
2894 return XF_ENC_LOCALE;
2895
2896 return XF_ENC_UTF8; /* Otherwise, we love UTF-8 */
2897}
2898
2899static ssize_t
2900xo_format_string (xo_handle_t *xop, xo_buffer_t *xbp, xo_xff_flags_t flags,

Callers 3

xo_format_stringFunction · 0.85
xo_data_append_contentFunction · 0.85
xo_do_format_fieldFunction · 0.85

Calls 1

xo_styleFunction · 0.85

Tested by

no test coverage detected