Example #1
0
File: Node.hpp Project: 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()));
	}
Example #2
0
File: Node.hpp Project: EQ4/lad
	static bool uri_is_path(const Raul::URI& uri) {
		return uri == root_uri() ||
			uri.substr(0, root_uri().length() + 1) == root_uri() + "/";
	}