- //!!!TODO:HACK!!!//
- if (uri == uristart && *uri == wxT('/'))
- ++uri;
- //!!!//
-}
-
-// ---------------------------------------------------------------------------
-// Normalize
-//
-// Normalizes directories in-place
-//
-// I.E. ./ and . are ignored
-//
-// ../ and .. are removed if a directory is before it, along
-// with that directory (leading .. and ../ are kept)
-// ---------------------------------------------------------------------------
-
-//static
-void wxURI::Normalize(wxChar* s, bool bIgnoreLeads)
-{
- wxChar* cp = s;
- wxChar* bp = s;
-
- if(s[0] == wxT('/'))
- ++bp;
-
- while(*cp)
- {
- if (*cp == wxT('.') && (*(cp+1) == wxT('/') || *(cp+1) == '\0')
- && (bp == cp || *(cp-1) == wxT('/')))
- {
- //. _or_ ./ - ignore
- if (*(cp+1) == '\0')
- cp += 1;
- else
- cp += 2;
- }
- else if (*cp == wxT('.') && *(cp+1) == wxT('.') &&
- (*(cp+2) == wxT('/') || *(cp+2) == '\0')
- && (bp == cp || *(cp-1) == wxT('/')))
+ const wxArrayString::const_iterator end = our.end();
+ for ( wxArrayString::const_iterator i = our.begin(); i != end; ++i )