1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

martin's patch for Bug 161844

This commit is contained in:
David McKnight 2006-10-24 12:23:51 +00:00
parent 12cbc6a5ef
commit 38cdf43eaa

View file

@ -42,13 +42,12 @@ public class PathUtility
containsDoubleSlashes = (path.indexOf("\\\\") != -1);
}
/* DKM - replaceAll is causing exception
while (containsDoubleSlashes)
{
path = path.replaceAll("\\\\", "\\");
//need to quote once for the string, then again for the regex
path = path.replaceAll("\\\\\\\\", "\\");
containsDoubleSlashes = (path.indexOf("\\\\") != -1);
}
*/
if (endsWithSlash)
{
if (!(path.length() == 3)) path = path.substring(0, path.length() - 1);
@ -72,7 +71,7 @@ public class PathUtility
if (containsBackSlash)
{
path = path.replaceAll("\\", "/");
path = path.replace('\\', '/');
containsDoubleSlashes = (path.indexOf("//") != -1);
}