File: unicode.h

package info (click to toggle)
simutrans 100.0%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,776 kB
  • ctags: 9,485
  • sloc: cpp: 72,459; ansic: 5,646; makefile: 450
file content (21 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef UNICODE_H
#define UNICODE_H

#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned char  utf8;
typedef unsigned short utf16;

int utf8_get_next_char(const utf8 *text, int pos);
int utf8_get_prev_char(const utf8 *text, int pos);

utf16 utf8_to_utf16(const utf8 *text, int *len);
int	utf16_to_utf8(utf16 unicode, utf8 *out);

#ifdef __cplusplus
}
#endif

#endif