1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2014 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
18 static const char SEPARATOR;
20 static std::string normalize(const std::string& original);
22 /* Creates a normalized absolute path from the given filename.
23 * The relative path will be resolved according to
24 * the current working directory. */
25 static std::string get_abs_path(const std::string& fname);
27 /* Returns the filename from the path. (The suffix after the last '/')
28 * e.g.: "abc/def" -> "def"
32 static std::string get_file(const std::string& path);
33 /* Returns the directory part of the given path.
34 * e.g.: "/a/b/cde -> "/a/b/"
38 static std::string get_dir(const std::string& path);
40 static std::string compose(const std::string& path1, const std::string& path2);
42 static bool is_absolute(const std::string& path);