From: ishmal Date: Sat, 22 Apr 2006 22:45:39 +0000 (+0000) Subject: Native path support X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8552534919bfd6988fa5a844f7f952ce764cd61;p=inkscape.git Native path support --- diff --git a/src/dom/uri.cpp b/src/dom/uri.cpp index e65c5edff..167b1f084 100644 --- a/src/dom/uri.cpp +++ b/src/dom/uri.cpp @@ -236,6 +236,32 @@ DOMString URI::getPath() const return path; } +DOMString URI::getNativePath() const +{ + DOMString npath; +#ifdef __WIN32__ + unsigned int firstChar = 0; + if (path.size() >= 3) + { + if (path[0] == '/' && + isLetter(path[1]) && + path[2] == ':') + firstChar++; + } + for (unsigned int i=firstChar ; ip0) //in other words, if '/' is not the first char @@ -643,7 +674,16 @@ bool URI::parse(const DOMString &str) { parselen = str.size(); - DOMString tmp = str; + + DOMString tmp; + for (unsigned int i=0 ; i