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

Function skip_string_verbatim

strings/json_lib.c:593–611  ·  view source on GitHub ↗

Check that the JSON string matches the argument and skip it. */

Source from the content-addressed store, hash-verified

591
592/* Check that the JSON string matches the argument and skip it. */
593static int skip_string_verbatim(json_string_t *s, const char *str)
594{
595 int c_len;
596 while (*str)
597 {
598 if ((c_len= json_next_char(s)) > 0)
599 {
600 if (s->c_next == (my_wc_t) *(str++))
601 {
602 s->c_str+= c_len;
603 continue;
604 }
605 return s->error= JE_SYN;
606 }
607 return s->error= json_eos(s) ? JE_EOS : JE_BAD_CHR;
608 }
609
610 return 0;
611}
612
613
614/* Scalar false. */

Callers 7

v_falseFunction · 0.85
v_nullFunction · 0.85
v_trueFunction · 0.85
read_falseFunction · 0.85
read_nullFunction · 0.85
read_trueFunction · 0.85
json_path_setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected