File: unicode_to_utf8.h

package info (click to toggle)
jfsutils 1.1.15-7
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,076 kB
  • sloc: ansic: 35,080; sh: 1,048; makefile: 81
file content (22 lines) | stat: -rw-r--r-- 591 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*  The code in this module was taken from:
 *
 * linux/fs/nls.c
 *
 * Native language support--charsets and unicode translations.
 * By Gordon Chaffee 1996, 1997
 *
 */
#ifndef _UNICODE_TO_UTF8_H
#define _UNICODE_TO_UTF8_H

#include "jfs_types.h"

int Unicode_Character_to_UTF8_Character(uint8_t * s, uint16_t wc, int maxlen);

int Unicode_String_to_UTF8_String(uint8_t * s, const uint16_t * pwcs, int maxlen);

int UTF8_String_To_Unicode_String(uint16_t * pwcs, const uint8_t * s, int maxLen);

int UTF8_Character_To_Unicode_Character(uint16_t * p, const uint8_t * s, int maxLen);

#endif