/[pearpc]/src/io/prom/fs/hfsplus/unicode.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /src/io/prom/fs/hfsplus/unicode.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Sep 5 17:11:21 2007 UTC (16 years, 7 months ago) by dpavlin
File MIME type: text/plain
File size: 860 byte(s)
import upstream CVS
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. Tehy allow 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);

  ViewVC Help
Powered by ViewVC 1.1.26