json_never_inline void decode_comma_separated()

in include/spotify/json/detail/decode_helpers.hpp [150:167]


json_never_inline void decode_comma_separated(decode_context &context, char intro, char outro, parse_function parse) {
  skip_1(context, intro);
  skip_any_whitespace(context);

  if (json_likely(peek(context) != outro)) {
    parse();
    skip_any_whitespace(context);

    while (json_likely(peek(context) != outro)) {
      skip_1(context, ',');
      skip_any_whitespace(context);
      parse();
      skip_any_whitespace(context);
    }
  }

  context.position++;
}