Ion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
string.h
Go to the documentation of this file.
1
18
#ifndef ION_PORT_STRING_H_
19
#define ION_PORT_STRING_H_
20
21
#include <cstring>
22
#include <string>
23
24
#if defined(ION_PLATFORM_QNX)
25
inline
size_t
strnlen(
const
char
*s,
size_t
maxlen) {
26
const
char
* end =
static_cast<
const
char
*
>
(memchr(s,
'\0'
, maxlen));
27
if
(end)
28
return
end - s;
29
return
maxlen;
30
}
31
#endif
32
33
namespace
ion {
34
namespace
port {
35
36
#if defined(ION_PLATFORM_WINDOWS)
37
ION_API std::wstring Utf8ToWide(
const
std::string& utf8);
40
ION_API std::string WideToUtf8(
const
std::wstring& wide);
41
#endif
42
43
}
// namespace port
44
}
// namespace ion
45
46
#endif // ION_PORT_STRING_H_
port
string.h
Generated by
1.8.6