Lines Matching refs:aPath
800 function normalize(aPath) {
801 var path = aPath;
802 var url = urlParse(aPath);
805 return aPath;
861 function join(aRoot, aPath) {
865 if (aPath === "") {
866 aPath = ".";
868 var aPathUrl = urlParse(aPath);
882 if (aPathUrl || aPath.match(dataUrlRegexp)) {
883 return aPath;
888 aRootUrl.host = aPath;
892 var joined = aPath.charAt(0) === '/'
893 ? aPath
894 : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath);
904 exports.isAbsolute = function (aPath) {
905 return aPath.charAt(0) === '/' || urlRegexp.test(aPath);
914 function relative(aRoot, aPath) {
926 while (aPath.indexOf(aRoot + '/') !== 0) {
929 return aPath;
937 return aPath;
944 return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);