Lines Matching defs:href
131 bool extractFilepath( Glib::ustring const &href, std::string &uri );
148 bool ResourceManagerImpl::extractFilepath( Glib::ustring const &href, std::string &uri )
154 std::string scheme = Glib::uri_parse_scheme(href);
158 // TODO debug g_message("--- is a file URI [%s]", href.c_str());
161 uri = Glib::filename_from_uri(href); // TODO see if we can get this to throw
168 uri = Glib::filename_from_utf8( href );
186 gchar const *href = ir->attribute("xlink:href");
187 if ( href && ( uniques.find(href) == uniques.end() ) ) {
189 if ( extractFilepath( href, uri ) ) {
192 result.push_back(href);
193 uniques.insert(href);
198 result.push_back(href);
199 uniques.insert(href);
313 gchar const *href = ir->attribute("xlink:href");
314 if ( href ) {
315 // TODO debug g_message(" consider [%s]", href);
317 if ( mapping.find(href) != mapping.end() ) {
320 ir->setAttribute( "xlink:href", mapping[href].c_str() );