void skip_string()

in src/detail/skip_value.cpp [62:75]


void skip_string(decode_context &context) {
  skip_1(context, '"');

  while (json_likely(context.remaining())) {
    detail::skip_any_simple_characters(context);
    switch (next(context, "Unterminated string")) {
      case '"': return;
      case '\\': skip_escape(context); break;
      default: json_unreachable();
    }
  }

  detail::fail(context, "Unterminated string");
}