File: charsets.h

package info (click to toggle)
bibutils 7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,040 kB
  • sloc: ansic: 112,579; sh: 462; makefile: 42
file content (25 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (2)
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
/*
 * charsets.h
 *
 * Copyright (c) Chris Putnam 2003-2021
 *
 * Source code released under the GPL version 2
 *
 */
#ifndef CHARSETS_H
#define CHARSETS_H

#define CHARSET_UNKNOWN      (-1)
#define CHARSET_UNICODE      (-2)
#define CHARSET_GB18030      (-3)
#define CHARSET_DEFAULT      CHARSET_UNICODE
#define CHARSET_UTF8_DEFAULT (1)
#define CHARSET_BOM_DEFAULT  (1)

char * charset_get_xmlname( int n );
int    charset_find( char *name );
void   charset_list_all( FILE *fp );
unsigned int charset_lookupchar( int charsetin, char c );
unsigned int charset_lookupuni( int charsetout, unsigned int unicode );

#endif