1 /* Creation date: 2008-04-05T22:11:13Z
2  * Authors: Don
3  */
4 
5 /*
6 
7  Copyright (c) 2007-2010 Don Owens <don@regexguy.com>.  All rights reserved.
8 
9  This is free software; you can redistribute it and/or modify it under
10  the Perl Artistic license.  You should have received a copy of the
11  Artistic license with this distribution, in the file named
12  "Artistic".  You may also obtain a copy from
13  http://regexguy.com/license/Artistic
14 
15  This program is distributed in the hope that it will be useful, but
16  WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 */
20 
21 /* $Revision: 1568 $ */
22 
23 #ifndef UTF16_H
24 #define UTF16_H
25 
26 #include <uni.h>
27 
28 #include <int_defs.h>
29 
30 UNI_DO_CPLUSPLUS_WRAP_BEGIN
31 
32 uint32_t utf16_bytes_to_unicode(const uint8_t *orig_buf, uint32_t buf_len, uint32_t *ret_len,
33     uint32_t is_little_endian);
34 
35 uint32_t utf16_unicode_to_bytes(uint32_t code_point, uint8_t *out_buf,
36     uint32_t output_little_endian);
37 
38 UNI_DO_CPLUSPLUS_WRAP_END
39 
40 #endif /* UTF16_H */
41 
42