cannam@85
|
1 /*
|
cannam@85
|
2 * libid3tag - ID3 tag manipulation library
|
cannam@85
|
3 * Copyright (C) 2000-2004 Underbit Technologies, Inc.
|
cannam@85
|
4 *
|
cannam@85
|
5 * This program is free software; you can redistribute it and/or modify
|
cannam@85
|
6 * it under the terms of the GNU General Public License as published by
|
cannam@85
|
7 * the Free Software Foundation; either version 2 of the License, or
|
cannam@85
|
8 * (at your option) any later version.
|
cannam@85
|
9 *
|
cannam@85
|
10 * This program is distributed in the hope that it will be useful,
|
cannam@85
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@85
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@85
|
13 * GNU General Public License for more details.
|
cannam@85
|
14 *
|
cannam@85
|
15 * You should have received a copy of the GNU General Public License
|
cannam@85
|
16 * along with this program; if not, write to the Free Software
|
cannam@85
|
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
cannam@85
|
18 *
|
cannam@85
|
19 * $Id: utf16.h,v 1.8 2004/01/23 09:41:32 rob Exp $
|
cannam@85
|
20 */
|
cannam@85
|
21
|
cannam@85
|
22 # ifndef LIBID3TAG_UTF16_H
|
cannam@85
|
23 # define LIBID3TAG_UTF16_H
|
cannam@85
|
24
|
cannam@85
|
25 # include "id3tag.h"
|
cannam@85
|
26
|
cannam@85
|
27 enum id3_utf16_byteorder {
|
cannam@85
|
28 ID3_UTF16_BYTEORDER_ANY,
|
cannam@85
|
29 ID3_UTF16_BYTEORDER_BE,
|
cannam@85
|
30 ID3_UTF16_BYTEORDER_LE
|
cannam@85
|
31 };
|
cannam@85
|
32
|
cannam@85
|
33 id3_length_t id3_utf16_length(id3_utf16_t const *);
|
cannam@85
|
34 id3_length_t id3_utf16_size(id3_utf16_t const *);
|
cannam@85
|
35
|
cannam@85
|
36 id3_length_t id3_utf16_decodechar(id3_utf16_t const *, id3_ucs4_t *);
|
cannam@85
|
37 id3_length_t id3_utf16_encodechar(id3_utf16_t *, id3_ucs4_t);
|
cannam@85
|
38
|
cannam@85
|
39 void id3_utf16_decode(id3_utf16_t const *, id3_ucs4_t *);
|
cannam@85
|
40 void id3_utf16_encode(id3_utf16_t *, id3_ucs4_t const *);
|
cannam@85
|
41
|
cannam@85
|
42 id3_length_t id3_utf16_put(id3_byte_t **, id3_utf16_t,
|
cannam@85
|
43 enum id3_utf16_byteorder);
|
cannam@85
|
44 id3_utf16_t id3_utf16_get(id3_byte_t const **, enum id3_utf16_byteorder);
|
cannam@85
|
45
|
cannam@85
|
46 id3_length_t id3_utf16_serialize(id3_byte_t **, id3_ucs4_t const *,
|
cannam@85
|
47 enum id3_utf16_byteorder, int);
|
cannam@85
|
48 id3_ucs4_t *id3_utf16_deserialize(id3_byte_t const **, id3_length_t,
|
cannam@85
|
49 enum id3_utf16_byteorder);
|
cannam@85
|
50
|
cannam@85
|
51 # endif
|