PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/win32/shellext/StringUtils.h

https://bitbucket.org/tortoisehg/hgtk/
C++ Header | 34 lines | 8 code | 10 blank | 16 comment | 0 complexity | 35a7946e6212da7107bd7a0f14075392 MD5 | raw file
 1// Copyright (C) 2002 - Francis Irving
 2// <francis@flourish.org> - May 2002
 3
 4// This program is free software; you can redistribute it and/or
 5// modify it under the terms of the GNU General Public License
 6// as published by the Free Software Foundation; either version 2
 7// of the License, or (at your option) any later version.
 8
 9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17
18#ifndef _STRING_UTILS_H
19#define _STRING_UTILS_H
20
21#include <string>
22#include <windows.h>
23
24// Quotes a string
25std::string Quote(const std::string& str);
26
27// Convert Unicode string to multibyte string
28std::string WideToMultibyte(const std::wstring& wide, UINT CodePage = CP_ACP);
29
30// Convert multibyte string to Unicode string 
31std::wstring MultibyteToWide(const std::string& multibyte, UINT CodePage = CP_ACP);
32
33
34#endif