Esempio n. 1
0
File: json.c Progetto: brenns10/nosj
/**
   @brief Return the parser state with textidx pointed at the next non-ws char.
   @param text The text we're parsing.
   @param p The current parser state
   @returns The new parser state
 */
static struct json_parser json_skip_whitespace(wchar_t *text, struct json_parser p)
{
  while (json_isspace(text[p.textidx]) && text[p.textidx] != '\0') {
    p.textidx++;
  }
  return p;
}
Esempio n. 2
0
static const unsigned char *
json_skip_space(const unsigned char *uc, const unsigned char *ue)
{
	while (uc < ue && json_isspace(*uc))
		uc++;
	return uc;
}