MCPcopy Create free account
hub / github.com/MariaDB/server / append_tab

Function append_tab

sql/item_jsonfunc.cc:173–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171static const char tab_arr[TAB_SIZE_LIMIT+1]= " ";
172
173static int append_tab(String *js, int depth, int tab_size)
174{
175 if (js->append('\n'))
176 return 1;
177 for (int i=0; i<depth; i++)
178 {
179 if (js->append(tab_arr, tab_size))
180 return 1;
181 }
182 return 0;
183}
184
185int json_path_parts_compare(const MEM_ROOT_DYNAMIC_ARRAY *a_arr,
186 const json_path_step_t *a,

Callers 1

json_niceFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected