예제 #1
0
파일: Node.hpp 프로젝트: 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()));
	}
예제 #2
0
파일: Node.hpp 프로젝트: EQ4/lad
	static bool uri_is_path(const Raul::URI& uri) {
		return uri == root_uri() ||
			uri.substr(0, root_uri().length() + 1) == root_uri() + "/";
	}