File: unicode.h

package info (click to toggle)
openbios 1.1.git20181001-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,260 kB
  • sloc: ansic: 66,955; asm: 3,504; xml: 1,154; cpp: 414; sh: 388; makefile: 231
file content (28 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 *  linux/fs/hfsplus/unicode.c
 *
 * Copyright (C) 1999-2000  Brad Boyer (flar@pants.nu)
 * This file may be distributed under the terms of the GNU Public License.
 *
 * The routines found here convert hfs-unicode string into ascii Strings
 * and vice versa.  And the correct comparison between Strings.
 */

/* convert the asci string astr into a unicode string given by ustr.
 *
 * returns actual length of convertet string.
 */

int unicode_asc2uni(hfsp_unistr255 *ustr, const char *astr);

/* Convert an unicode string ustr to a ascii string astr of given maximum len
 *
 * returns actual length of convertet string.
 */

int unicode_uni2asc(char *astr, const hfsp_unistr255 *ustr, int maxlen);

/* similar to strcmp for unicode, pascal strings */

SInt32 fast_unicode_compare (const hfsp_unistr255 *ustr1,
			     const hfsp_unistr255 *ustr2);