]> pilppa.org Git - libcharencoding.git/blob - src/charencoding.h
libcharencoding: initial version
[libcharencoding.git] / src / charencoding.h
1 /**
2  * Copyright (c) 2009-2010 Mika Laitio <lamikr@pilppa.org>
3  *
4  * This file and library is covered by the LGPL version 3, read LICENSE for details.
5  *
6  * History:
7  * - Created charencoding.h on: Nov 25, 2009
8  */
9
10 #ifndef CHARENCODING_H_
11 #define CHARENCODING_H_
12
13 #include <stdio.h>
14 #include <stdbool.h>
15
16 bool is_utf8_locale();
17 char *str_encode(const char *src,
18                 const char *src_codeset,
19                 const char *trgt_codeset,
20                 int *err_flg);
21 char *utf8_encode(char *input_str, int *err_flg);
22 int utf8_printf(char *fmt, ...);
23
24 #endif /* CHARENCODING_H_ */