1 |
/* wptUTF8.h |
/* wptUTF8.h |
2 |
* Copyright (C) 2002, 2003, 2004 Timo Schulz |
* Copyright (C) 2002, 2003, 2004, 2005 Timo Schulz |
3 |
* |
* |
4 |
* This file is part of WinPT. |
* This file is part of WinPT. |
5 |
* |
* |
21 |
#ifndef WPT_UTF8_H |
#ifndef WPT_UTF8_H |
22 |
#define WPT_UTF8_H |
#define WPT_UTF8_H |
23 |
|
|
24 |
int set_native_charset (const char * newset); |
int set_native_charset (const char *newset); |
25 |
const char * get_native_charset (void); |
const char* get_native_charset (void); |
26 |
int is_8bit_string (const char * str); |
int is_8bit_string (const char *str); |
27 |
char * utf8_to_wincp (const char * s, size_t len); |
char *wincp_to_utf8 (const char *s, size_t len); |
28 |
char * wincp_to_utf8 (const char * s, size_t len); |
char *utf8_to_wincp (const char *s, size_t len); |
29 |
|
#define utf8_to_wincp2(encstr) utf8_to_wincp ((encstr), strlen (encstr)) |
30 |
|
|
31 |
#endif /*WPT_UTF8_H*/ |
#endif /*WPT_UTF8_H*/ |