21 : std::runtime_error(message) {}
89std::vector<PathComponent>
parse_path(std::string_view path);
108std::vector<std::string>
110 const std::vector<std::string> &items);
PathError(const std::string &message)
std::vector< std::string > expand_wildcard(std::string_view pattern, const std::vector< std::string > &items)
Expand wildcard patterns in item names.
bool is_valid_collection(std::string_view name)
Check if a collection name is valid.
std::vector< PathComponent > parse_path(std::string_view path)
Parse a resource path into components.
ComponentType
Type of path component.
bool matches_wildcard(std::string_view str, std::string_view pattern)
Check if a string matches a wildcard pattern.
std::optional< int > index
bool is_collection() const
PathComponent(ComponentType t, std::string v)
PathComponent(ComponentType t, std::string v, int idx)
bool has_wildcard() const