imapext-2007

view src/c-client/utf8aux.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
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 */
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 */
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 */
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);

UW-IMAP'd extensions by yuuji