Esempio n. 1
0
File: Node.hpp Progetto: EQ4/lad
	static Raul::Path uri_to_path(const Raul::URI& uri) {
		return (uri == root_uri())
			? Raul::Path("/")
			: Raul::Path(uri.substr(root_uri().length()));
	}
Esempio n. 2
0
File: Node.hpp Progetto: EQ4/lad
	static bool uri_is_path(const Raul::URI& uri) {
		return uri == root_uri() ||
			uri.substr(0, root_uri().length() + 1) == root_uri() + "/";
	}