@brief return a string representation of the JSON pointer @sa https://json.nlohmann.me/api/json_pointer/to_string/
| 13785 | /// @brief return a string representation of the JSON pointer |
| 13786 | /// @sa https://json.nlohmann.me/api/json_pointer/to_string/ |
| 13787 | string_t to_string() const |
| 13788 | { |
| 13789 | return std::accumulate(reference_tokens.begin(), reference_tokens.end(), |
| 13790 | string_t{}, |
| 13791 | [](const string_t& a, const string_t& b) |
| 13792 | { |
| 13793 | return detail::concat(a, '/', detail::escape(b)); |
| 13794 | }); |
| 13795 | } |
| 13796 | |
| 13797 | /// @brief return a string representation of the JSON pointer |
| 13798 | /// @sa https://json.nlohmann.me/api/json_pointer/operator_string/ |
no test coverage detected