summaryrefslogtreecommitdiffstats
blob: 1567a1db970e39c959447bd06b6b96898bb05e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2013-2016 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <string>

#include <boost/filesystem/path.hpp>

#include <Swiften/Base/API.h>

namespace Swift {
	/**
	 * Creates a path for the given UTF-8 encoded string.
	 * This works independently of global locale settings.
	 */
	SWIFTEN_API boost::filesystem::path stringToPath(const std::string&);

	/**
	 * Returns the UTF-8 representation of the given path
	 * This works independently of global locale settings.
	 */
	SWIFTEN_API std::string pathToString(const boost::filesystem::path&);
}