]> granicus.if.org Git - uw-imap/blob - src/c-client/utf8aux.h
add files for 2007-10-09T17:40:39Z
[uw-imap] / src / c-client / utf8aux.h
1 /* ========================================================================
2  * Copyright 1988-2007 University of Washington
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * 
11  * ========================================================================
12  */
13
14 /*
15  * Program:     UTF-8 auxillary routines (c-client and MIME2 support)
16  *
17  * Author:      Mark Crispin
18  *              Networks and Distributed Computing
19  *              Computing & Communications
20  *              University of Washington
21  *              Administration Building, AG-44
22  *              Seattle, WA  98195
23  *              Internet: MRC@CAC.Washington.EDU
24  *
25  * Date:        11 June 1997
26  * Last Edited: 9 October 2007
27  */
28
29
30 /* Following routines are in utf8aux.c as these depend upon c-client.
31  * Splitting these routines out makes it possible for pico to link with utf8.o
32  * and a few rump routines (e.g., fs_get()) but not all the rest of c-client
33  * (which pico does not need).
34  */
35
36 void utf8_searchpgm (SEARCHPGM *pgm,char *charset);
37 long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags);
38 unsigned char *mime2_token (unsigned char *s,unsigned char *se,
39                             unsigned char **t);
40 unsigned char *mime2_text (unsigned char *s,unsigned char *se);
41 long mime2_decode (unsigned char *e,unsigned char *t,unsigned char *te,
42                    SIZEDTEXT *txt);
43 unsigned char *utf8_to_mutf7 (unsigned char *src);
44 unsigned char *utf8_from_mutf7 (unsigned char *src);