Function split

Function Documentation

static std::vector<string_t> split(const string_t &reference_string)

split the string input to reference tokens

Note

This function is only called by the json_pointer constructor. All exceptions below are documented there.

Throws:
  • parse_error.107 – if the pointer is not empty or begins with ‘/’

  • parse_error.108 – if character ‘~’ is not followed by ‘0’ or ‘1’