| 135 | } |
| 136 | |
| 137 | bool Uri::parse ( const char * uriString ) { |
| 138 | if ( uriString==nullptr ) uriString = ""; |
| 139 | reset(); |
| 140 | lastOp = uriParseSingleUriA(&uri, uriString, &errorPos); |
| 141 | if ( lastOp != URI_SUCCESS ) return false; |
| 142 | uriMakeOwnerA(&uri); |
| 143 | isEmpty = false; |
| 144 | lastOp = URI_SUCCESS; |
| 145 | return true; |
| 146 | } |
| 147 | |
| 148 | void Uri::clone ( const Uri & uriS ) { |
| 149 | reset(); |
no test coverage detected