File: utf8.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 (22 lines) | stat: -rw-r--r-- 551 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
/*
 * utf8.h
 *
 * Copyright (c) Chris Putnam 2004-2021
 *
 * Source code released under the GPL version 2
 *
 */
#ifndef UTF8_H
#define UTF8_H

#include <stdio.h>

int          utf8_encode( unsigned int value, unsigned char out[6] );
void         utf8_encode_str( unsigned int value, char outstr[7] );
unsigned int utf8_decode( const char *s, unsigned int *pi );
void         utf8_writebom( FILE *outptr );
int          utf8_is_bom( const char *p );
int          utf8_is_emdash( const char *p );
int          utf8_is_endash( const char *p );

#endif