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

Function get_first_nonspace

strings/json_lib.c:750–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748
749
750static void get_first_nonspace(json_string_t *js, int *t_next, int *c_len)
751{
752 do
753 {
754 if ((*c_len= json_next_char(js)) <= 0)
755 *t_next= json_eos(js) ? C_EOS : C_BAD;
756 else
757 {
758 *t_next= (js->c_next < 128) ? json_chr_map[js->c_next] : C_ETC;
759 js->c_str+= *c_len;
760 }
761 } while (*t_next == C_SPACE);
762}
763
764
765/* Next key name. */

Callers 6

next_keyFunction · 0.85
skip_colonFunction · 0.85
skip_keyFunction · 0.85
json_read_valueFunction · 0.85
json_scan_nextFunction · 0.85
json_locate_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected