imapext-2007
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/c-client/utf8aux.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,44 @@ 1.4 +/* ======================================================================== 1.5 + * Copyright 1988-2007 University of Washington 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * 1.14 + * ======================================================================== 1.15 + */ 1.16 + 1.17 +/* 1.18 + * Program: UTF-8 auxillary routines (c-client and MIME2 support) 1.19 + * 1.20 + * Author: Mark Crispin 1.21 + * Networks and Distributed Computing 1.22 + * Computing & Communications 1.23 + * University of Washington 1.24 + * Administration Building, AG-44 1.25 + * Seattle, WA 98195 1.26 + * Internet: MRC@CAC.Washington.EDU 1.27 + * 1.28 + * Date: 11 June 1997 1.29 + * Last Edited: 9 October 2007 1.30 + */ 1.31 + 1.32 + 1.33 +/* Following routines are in utf8aux.c as these depend upon c-client. 1.34 + * Splitting these routines out makes it possible for pico to link with utf8.o 1.35 + * and a few rump routines (e.g., fs_get()) but not all the rest of c-client 1.36 + * (which pico does not need). 1.37 + */ 1.38 + 1.39 +void utf8_searchpgm (SEARCHPGM *pgm,char *charset); 1.40 +long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags); 1.41 +unsigned char *mime2_token (unsigned char *s,unsigned char *se, 1.42 + unsigned char **t); 1.43 +unsigned char *mime2_text (unsigned char *s,unsigned char *se); 1.44 +long mime2_decode (unsigned char *e,unsigned char *t,unsigned char *te, 1.45 + SIZEDTEXT *txt); 1.46 +unsigned char *utf8_to_mutf7 (unsigned char *src); 1.47 +unsigned char *utf8_from_mutf7 (unsigned char *src);