Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / fs / hfsplus / include / unicode.h
1 /*
2  *  linux/fs/hfsplus/unicode.c
3  *
4  * Copyright (C) 1999-2000  Brad Boyer (flar@pants.nu)
5  * This file may be distributed under the terms of the GNU Public License.
6  *
7  * The routines found here convert hfs-unicode string into ascii Strings
8  * and vice versa.  And the correct comparison between Strings.
9  */
10
11 /* convert the asci string astr into a unicode string given by ustr.
12  *
13  * returns actual length of convertet string.
14  */
15
16 int unicode_asc2uni(hfsp_unistr255 *ustr, const char *astr);
17
18 /* Convert an unicode string ustr to a ascii string astr of given maximum len
19  *
20  * returns actual length of convertet string.
21  */
22
23 int unicode_uni2asc(char *astr, const hfsp_unistr255 *ustr, int maxlen);
24
25 /* similar to strcmp for unicode, pascal strings */
26
27 SInt32 fast_unicode_compare (const hfsp_unistr255 *ustr1,
28                              const hfsp_unistr255 *ustr2);