URI::URI(const URI& copyFrom_, bool nofrag) { initialize(); const String& uriStr = copyFrom_.getURIString(); if (nofrag) { size_t pos = uriStr.find_last_of('#'); if (pos != String::npos) { set(uriStr.substr(0, pos)); return; } } set(uriStr); }
size_t calculateHash( const URI& uri ) { return calculateHash(uri.getURIString()); }
bool URI::operator<( const URI& rhs ) const { if ( getURIString() < rhs.getURIString() ) return true; return false; }