#include <config.h>
#include <cctype>
-#include <pair.h>
+#include <utility>
+using std::make_pair;
+using std::pair;
#ifdef __GNUG__
#pragma implementation "filetools.h"
# endif
#endif
-using std::make_pair;
-
extern string system_lyxdir;
extern string build_lyxdir;
extern string user_lyxdir;
// Supports ./ and ~/. Later we can add support for ~logname/. (Asger)
string ExpandPath(string const & path)
{
- Assert(!path.empty()); // We don't allow empty path. (Lgb)
// checks for already absolute path
string RTemp = ReplaceEnvironmentPath(path);
if (AbsolutePath(RTemp))
string ReplaceEnvironmentPath(string const & path)
{
- Assert(!path.empty()); // We don't allow empty path. (Lgb)
//
// CompareChar: Environmentvariables starts with this character
// PathChar: Next path component start with this character