Lines Matching defs:uri
131 bool extractFilepath( Glib::ustring const &href, std::string &uri );
148 bool ResourceManagerImpl::extractFilepath( Glib::ustring const &href, std::string &uri )
152 uri.clear();
161 uri = Glib::filename_from_uri(href); // TODO see if we can get this to throw
162 // TODO debug g_message(" [%s]", uri.c_str());
168 uri = Glib::filename_from_utf8( href );
188 std::string uri;
189 if ( extractFilepath( href, uri ) ) {
190 if ( Glib::path_is_absolute(uri) ) {
191 if ( !Glib::file_test(uri, Glib::FILE_TEST_EXISTS) ) {
196 std::string combined = Glib::build_filename(doc->getBase(), uri);
197 if ( !Glib::file_test(uri, Glib::FILE_TEST_EXISTS) ) {
222 Glib::ustring uri = (*it)->get_uri();
223 std::string scheme = Glib::uri_parse_scheme(uri);
226 std::string path = Glib::filename_from_uri(uri);
233 g_warning("Bad URL ignored [%s]", uri.c_str());
242 std::string uri;
243 if ( extractFilepath( *it, uri ) ) {
245 std::string origPath = uri;
247 if ( !Glib::path_is_absolute(uri) ) {
248 uri = Glib::build_filename(docbase, uri);
249 // TODO debug g_message(" not absolute. Fixing up as [%s]", uri.c_str());
252 if ( !Glib::file_test(uri, Glib::FILE_TEST_EXISTS) ) {