| 1447 | } |
| 1448 | |
| 1449 | common_peg_parser common_peg_parser_builder::json_member(const std::string & key, const common_peg_parser & p) { |
| 1450 | auto ws = space(); |
| 1451 | return sequence({ |
| 1452 | literal("\"" + key + "\""), |
| 1453 | ws, |
| 1454 | literal(":"), |
| 1455 | ws, |
| 1456 | p, |
| 1457 | }); |
| 1458 | } |
| 1459 | |
| 1460 | static std::string gbnf_escape_char_class(uint32_t c) { |
| 1461 | if (c == '-' || c == ']' || c == '[' || c == '\\') { |
no outgoing calls