3 #include <hocon/functional_list.hpp> 4 #include <hocon/types.hpp> 13 class LIBCPP_HOCON_EXPORT
path {
16 explicit path(std::string first,
path const& remainder);
17 explicit path(std::vector<std::string> elements);
18 explicit path(std::vector<path> paths_to_concat);
20 shared_string first()
const;
23 path remainder()
const;
28 bool has_remainder()
const;
30 shared_string last()
const;
33 path sub_path(
int remove_from_front);
34 path sub_path(
int start_index,
int end_index);
35 bool starts_with(
path other)
const;
38 bool operator!=(
path const& other)
const;
41 static bool has_funky_chars(std::string
const& s);
43 void append_to_string(std::string& base)
const;
46 std::string to_string()
const;
49 std::string render()
const;
51 static path new_key(std::string key);
52 static path new_path(std::string
path);
Factory for creating config_document instances.
bool operator==(config_document const &lhs, config_document const &rhs)
Config documents compare via rendered strings.