]> Dogcows Code - chaz/yoink/blob - src/moof/string.hh
begin cleaning up resource management
[chaz/yoink] / src / moof / string.hh
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #ifndef _MOOF_STRING_HH_
13 #define _MOOF_STRING_HH_
14
15 /**
16 * \file string.hh
17 * Functions related to string manipulations.
18 */
19
20 #include <string>
21
22
23 namespace moof {
24
25
26 using std::string;
27 using std::wstring;
28
29
30 /**
31 * Convert a multi-byte (UTF-8) string to a wide string.
32 * \param multi The multi-byte string to convert.
33 * \return The equivalent wide string.
34 */
35 wstring multi_to_wide(const string& multi);
36
37 /**
38 * Convert a wide string to a multi-byte (UTF-8) string.
39 * \param wide The wide string to convert.
40 * \return The equivalent multi-byte string.
41 */
42 string wide_to_multi(const wstring& wide);
43
44
45 } // namespace moof
46
47
48 #endif // _MOOF_STRINGTOOLS_HH_
49
This page took 0.030436 seconds and 4 git commands to generate.