Lines Matching defs:ioPath
69 void nsFileSpecHelpers::Canonify(nsSimpleCharString& ioPath, PRBool inMakeDirs)
75 if (ioPath.IsEmpty())
78 NS_ASSERTION(strchr((const char*)ioPath, '/') == 0,
84 nsSimpleCharString unixStylePath = ioPath;
93 PRUint32 lenstr = ioPath.Length();
94 char &lastchar = ioPath[lenstr -1];
99 if( lastchar == '\\' && (lenstr != 3 || ioPath[1] != ':') && lenstr != 1)
107 DosQueryPathInfo( (char*) ioPath,
112 char* canonicalPath = _fullpath(buffer, ioPath, _MAX_PATH);
126 ioPath = canonicalPath;
130 void nsFileSpecHelpers::UnixToNative(nsSimpleCharString& ioPath)
138 if (ioPath.IsEmpty())
142 char* src = (char*)ioPath;
145 // allocate new string by copying from ioPath[1]
147 ioPath = temp;
154 // allocate new string by copying from ioPath[1]
156 ioPath = temp;
159 src = (char*)ioPath;
172 void nsFileSpecHelpers::NativeToUnix(nsSimpleCharString& ioPath)
177 if (ioPath.IsEmpty())
183 char* cp = (char*)ioPath + 1;
205 temp += ioPath;
206 ioPath = temp;