2 * linux/fs/hfsplus/unicode.c
4 * Copyright (C) 1999-2000 Brad Boyer (flar@pants.nu)
5 * This file may be distributed under the terms of the GNU Public License.
7 * The routines found here convert hfs-unicode string into ascii Strings
8 * and vice versa. And the correct comparison between Strings.
11 /* convert the asci string astr into a unicode string given by ustr.
13 * returns actual length of convertet string.
16 int unicode_asc2uni(hfsp_unistr255 *ustr, const char *astr);
18 /* Convert an unicode string ustr to a ascii string astr of given maximum len
20 * returns actual length of convertet string.
23 int unicode_uni2asc(char *astr, const hfsp_unistr255 *ustr, int maxlen);
25 /* similar to strcmp for unicode, pascal strings */
27 SInt32 fast_unicode_compare (const hfsp_unistr255 *ustr1,
28 const hfsp_unistr255 *ustr2);