1*2c7984eaSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*2c7984eaSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*2c7984eaSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*2c7984eaSAndrew Rist  * distributed with this work for additional information
6*2c7984eaSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*2c7984eaSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*2c7984eaSAndrew Rist  * "License"); you may not use this file except in compliance
9*2c7984eaSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*2c7984eaSAndrew Rist  *
11*2c7984eaSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*2c7984eaSAndrew Rist  *
13*2c7984eaSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*2c7984eaSAndrew Rist  * software distributed under the License is distributed on an
15*2c7984eaSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2c7984eaSAndrew Rist  * KIND, either express or implied.  See the License for the
17*2c7984eaSAndrew Rist  * specific language governing permissions and limitations
18*2c7984eaSAndrew Rist  * under the License.
19*2c7984eaSAndrew Rist  *
20*2c7984eaSAndrew Rist  *************************************************************/
21*2c7984eaSAndrew Rist 
22*2c7984eaSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _STRINGCONVERTER_HXX_
25cdf0e10cSrcweir #define _STRINGCONVERTER_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <string>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir /** Convert a Unicode string to an ANSI string based on CP_ACP
30cdf0e10cSrcweir */
31cdf0e10cSrcweir std::string UnicodeToAnsiString(const std::wstring& UniString);
32cdf0e10cSrcweir 
33cdf0e10cSrcweir /** Convert an ANSI string to unicode based on CP_ACP
34cdf0e10cSrcweir */
35cdf0e10cSrcweir std::wstring AnsiToUnicodeString(const std::string& AnsiString);
36cdf0e10cSrcweir 
37cdf0e10cSrcweir #endif
38