|
|
|
|
|
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("x:\\sll\lll")) {
|
|
|
|
|
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("x:\\sll\\lll")) {
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("\\sll\lll")) {
|
|
|
|
|
|
|
|
|
if (!CodeDweller::FilePath::isAbsolute("\\sll\\lll")) {
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
RETURN_FALSE("isAbsolute() failure");
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
|
|
|
RETURN_FALSE("join() failure");
|
|
|
RETURN_FALSE("join() failure");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
|
std::string absComponent = "\\abs";
|
|
|
|
|
|
#else
|
|
|
|
|
|
std::string absComponent = "/abs";
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
try {
|
|
|
try {
|
|
|
|
|
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", "/abs"});
|
|
|
|
|
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", absComponent});
|
|
|
|
|
|
|
|
|
NO_EXCEPTION_TERM("join()");
|
|
|
NO_EXCEPTION_TERM("join()");
|
|
|
return false;
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
try {
|
|
|
|
|
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", "/abs", "otherrel"});
|
|
|
|
|
|
|
|
|
(void) CodeDweller::FilePath::join({"rel", absComponent, "otherrel"});
|
|
|
|
|
|
|
|
|
NO_EXCEPTION_TERM("join()");
|
|
|
NO_EXCEPTION_TERM("join()");
|
|
|
return false;
|
|
|
return false;
|