Choreonoid
1.5
src
Util
UTF8.h
Go to the documentation of this file.
1
6
#ifndef CNOID_UTIL_UTF8_H_INCLUDED
7
#define CNOID_UTIL_UTF8_H_INCLUDED
8
9
#include <string>
10
#include "
exportdecl.h
"
11
12
namespace
cnoid
{
13
#ifdef _WIN32
14
CNOID_EXPORT
const
std::string
toUTF8
(
const
std::string& text);
15
CNOID_EXPORT
const
std::string
fromUTF8
(
const
std::string& text);
16
CNOID_EXPORT
const
std::string
toUTF8
(
const
char
* text);
17
CNOID_EXPORT
const
std::string
fromUTF8
(
const
char
* text);
18
#else
19
inline
const
std::string&
toUTF8
(
const
std::string& text) {
return
text; }
20
inline
const
std::string&
fromUTF8
(
const
std::string& text) {
return
text; }
21
inline
const
std::string
toUTF8
(
const
char
* text) {
return
text; }
22
inline
const
std::string
fromUTF8
(
const
char
* text) {
return
text; }
23
//inline std::string toUTF8(const std::string& text) { return text; }
24
//inline std::string fromUTF8(const std::string& text) { return text; }
25
#endif
26
}
27
28
#endif
exportdecl.h
cnoid::toUTF8
const std::string & toUTF8(const std::string &text)
Definition:
UTF8.h:19
cnoid
Defines the minimum processing for performing pasing file for STL.
Definition:
AbstractSceneLoader.h:9
CNOID_EXPORT
#define CNOID_EXPORT
Definition:
Util/exportdecl.h:37
cnoid::fromUTF8
const std::string & fromUTF8(const std::string &text)
Definition:
UTF8.h:20
Generated by
1.8.13