… | |
… | |
22 | |
22 | |
23 | #ifndef PSICONV_COMMON_H |
23 | #ifndef PSICONV_COMMON_H |
24 | #define PSICONV_COMMON_H |
24 | #define PSICONV_COMMON_H |
25 | |
25 | |
26 | #include <psiconv/general.h> |
26 | #include <psiconv/general.h> |
|
|
27 | #include <psiconv/configuration.h> |
|
|
28 | #include <psiconv/unicode.h> |
27 | |
29 | |
28 | #ifdef __cplusplus |
30 | #ifdef __cplusplus |
29 | extern "C" { |
31 | extern "C" { |
30 | #endif /* __cplusplus */ |
32 | #endif /* __cplusplus */ |
31 | |
33 | |
32 | /* *************** |
34 | /* *************** |
33 | * misc.c * |
35 | * misc.c * |
34 | *************** */ |
36 | *************** */ |
35 | |
37 | |
36 | /* This function returns a copy of a string, that contains no ASCII codes |
38 | /* This function returns a copy of a Unicode string, converted to plain ASCII. |
|
|
39 | Anything codepage dependent (> 128) is sanitized away. |
37 | that are not printable. You should free this string yourself when you are |
40 | You should free this string yourself when you are |
38 | done with it. Returns NULL if there is not enough memory left. */ |
41 | done with it. Returns NULL if there is not enough memory left. */ |
39 | extern char *psiconv_make_printable(const char *s); |
42 | extern char *psiconv_make_printable(const psiconv_config config, |
|
|
43 | const psiconv_string_t s); |
40 | |
44 | |
41 | |
45 | |
42 | /* ************** |
46 | /* ************** |
43 | * checkuid.c * |
47 | * checkuid.c * |
44 | ************** */ |
48 | ************** */ |