imap4r1.h | imap4r1.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 14 October 1988 | * Date: 14 October 1988 | |||
* Last Edited: 5 June 2007 | * Last Edited: 5 September 2007 | |||
*/ | */ | |||
/* This include file is provided for applications which need to look under | /* This include file is provided for applications which need to look under | |||
* the covers at the IMAP driver and in particular want to do different | * the covers at the IMAP driver and in particular want to do different | |||
* operations depending upon the IMAP server's protocol level and | * operations depending upon the IMAP server's protocol level and | |||
* capabilities. It is NOT included in the normal c-client.h application | * capabilities. It is NOT included in the normal c-client.h application | |||
* export, and most applications do NOT need the definitions in this file. | * export, and most applications do NOT need the definitions in this file. | |||
* | * | |||
* As of October 15, 2003, it is believed that: | * As of October 15, 2003, it is believed that: | |||
* | * | |||
skipping to change at line 86 | skipping to change at line 86 | |||
unsigned int multiappend : 1; /* server has multi-APPEND (RFC 3502 ) ;*/ | unsigned int multiappend : 1; /* server has multi-APPEND (RFC 3502 ) ;*/ | |||
unsigned int binary : 1; /* server has BINARY (RFC 3516) */ | unsigned int binary : 1; /* server has BINARY (RFC 3516) */ | |||
unsigned int unselect : 1; /* server has UNSELECT */ | unsigned int unselect : 1; /* server has UNSELECT */ | |||
unsigned int sasl_ir : 1; /* server has SASL-IR initial response */ | unsigned int sasl_ir : 1; /* server has SASL-IR initial response */ | |||
unsigned int sort : 1; /* server has SORT */ | unsigned int sort : 1; /* server has SORT */ | |||
unsigned int scan : 1; /* server has SCAN */ | unsigned int scan : 1; /* server has SCAN */ | |||
unsigned int urlauth : 1; /* server has URLAUTH (RFC 4467) */ | unsigned int urlauth : 1; /* server has URLAUTH (RFC 4467) */ | |||
unsigned int catenate : 1; /* server has CATENATE (RFC 4469) */ | unsigned int catenate : 1; /* server has CATENATE (RFC 4469) */ | |||
unsigned int condstore : 1; /* server has CONDSTORE (RFC 4551) */ | unsigned int condstore : 1; /* server has CONDSTORE (RFC 4551) */ | |||
unsigned int esearch : 1; /* server has ESEARCH (RFC 4731) */ | unsigned int esearch : 1; /* server has ESEARCH (RFC 4731) */ | |||
unsigned int within : 1; /* server has WITHIN (RFC 5032) */ | ||||
unsigned int extlevel; /* extension data level supported by server */ | unsigned int extlevel; /* extension data level supported by server */ | |||
/* supported authenticators */ | /* supported authenticators */ | |||
unsigned int auth : MAXAUTHENTICATORS; | unsigned int auth : MAXAUTHENTICATORS; | |||
THREADER *threader; /* list of threaders */ | THREADER *threader; /* list of threaders */ | |||
} IMAPCAP; | } IMAPCAP; | |||
/* IMAP4rev1 level or better */ | /* IMAP4rev1 level or better */ | |||
#define LEVELIMAP4rev1(stream) imap_cap (stream)->imap4rev1 | #define LEVELIMAP4rev1(stream) imap_cap (stream)->imap4rev1 | |||
#define LEVELSTATUS LEVELIMAP4rev1 | #define LEVELSTATUS LEVELIMAP4rev1 | |||
skipping to change at line 211 | skipping to change at line 212 | |||
#define LEVELCATENATE(stream) imap_cap (stream)->catenate | #define LEVELCATENATE(stream) imap_cap (stream)->catenate | |||
/* Has CONDSTORE extension */ | /* Has CONDSTORE extension */ | |||
#define LEVELCONDSTORE(stream) imap_cap (stream)->condstore | #define LEVELCONDSTORE(stream) imap_cap (stream)->condstore | |||
/* Has ESEARCH extension */ | /* Has ESEARCH extension */ | |||
#define LEVELESEARCH(stream) imap_cap (stream)->esearch | #define LEVELESEARCH(stream) imap_cap (stream)->esearch | |||
/* Has WITHIN extension */ | ||||
#define LEVELWITHIN(stream) imap_cap (stream)->within | ||||
/* Body structure extension levels */ | /* Body structure extension levels */ | |||
/* These are in BODYSTRUCTURE order. Note that multipart bodies do not hav e | /* These are in BODYSTRUCTURE order. Note that multipart bodies do not hav e | |||
* body-fld-md5. This is alright, since all subsequent body structure | * body-fld-md5. This is alright, since all subsequent body structure | |||
* extensions are in both singlepart and multipart bodies. If that ever | * extensions are in both singlepart and multipart bodies. If that ever | |||
* changes, this will have to be split. | * changes, this will have to be split. | |||
*/ | */ | |||
#define BODYEXTMD5 1 /* body-fld-md5 */ | #define BODYEXTMD5 1 /* body-fld-md5 */ | |||
#define BODYEXTDSP 2 /* body-fld-dsp */ | #define BODYEXTDSP 2 /* body-fld-dsp */ | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 6 lines changed or added | |||
mail.h | mail.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 22 November 1989 | * Date: 22 November 1989 | |||
* Last Edited: 14 June 2007 | * Last Edited: 8 October 2007 | |||
*/ | */ | |||
/* The Version */ | /* The Version */ | |||
#define CCLIENTVERSION "2006j" | #define CCLIENTVERSION "2006k" | |||
/* Build parameters */ | /* Build parameters */ | |||
#define CACHEINCREMENT 250 /* cache growth increments */ | #define CACHEINCREMENT 250 /* cache growth increments */ | |||
#define MAILTMPLEN 1024 /* size of a temporary buffer */ | #define MAILTMPLEN 1024 /* size of a temporary buffer */ | |||
#define SENDBUFLEN 16385 /* size of temporary sending buffer, also | #define SENDBUFLEN 16385 /* size of temporary sending buffer, also | |||
* used for SMTP commands and NETMBX generat ion | * used for SMTP commands and NETMBX generat ion | |||
* buffer so shouldn't be made smaller than | * buffer so shouldn't be made smaller than | |||
* MAILTMPLEN. Note that there's a guard by te, | * MAILTMPLEN. Note that there's a guard by te, | |||
* so this is actually len+1. */ | * so this is actually len+1. */ | |||
skipping to change at line 359 | skipping to change at line 359 | |||
#define DR_MAIL (long) 0x4 /* supports mail */ | #define DR_MAIL (long) 0x4 /* supports mail */ | |||
#define DR_NEWS (long) 0x8 /* supports news */ | #define DR_NEWS (long) 0x8 /* supports news */ | |||
#define DR_READONLY (long) 0x10 /* driver only allows readonly acces s */ | #define DR_READONLY (long) 0x10 /* driver only allows readonly acces s */ | |||
#define DR_NOFAST (long) 0x20 /* "fast" data is slow (whole msg fetch) */ | #define DR_NOFAST (long) 0x20 /* "fast" data is slow (whole msg fetch) */ | |||
#define DR_NAMESPACE (long) 0x40/* driver has a special namespace */ | #define DR_NAMESPACE (long) 0x40/* driver has a special namespace */ | |||
#define DR_LOWMEM (long) 0x80 /* low amounts of memory available */ | #define DR_LOWMEM (long) 0x80 /* low amounts of memory available */ | |||
#define DR_LOCKING (long) 0x100 /* driver does locking */ | #define DR_LOCKING (long) 0x100 /* driver does locking */ | |||
#define DR_CRLF (long) 0x200 /* driver internal form uses CRLF newlines * / | #define DR_CRLF (long) 0x200 /* driver internal form uses CRLF newlines * / | |||
#define DR_NOSTICKY (long) 0x400/* driver does not support sticky UIDs */ | #define DR_NOSTICKY (long) 0x400/* driver does not support sticky UIDs */ | |||
#define DR_RECYCLE (long) 0x800 /* driver does stream recycling */ | #define DR_RECYCLE (long) 0x800 /* driver does stream recycling */ | |||
#define DR_XPOINT (long) 0x1000 /* needs to be checkpointed when rec ycling */ | #define DR_XPOINT (long) 0x1000 /* needs to be checkpointed */ | |||
/* driver has no real internal date */ | /* driver has no real internal date */ | |||
#define DR_NOINTDATE (long) 0x2000 | #define DR_NOINTDATE (long) 0x2000 | |||
/* driver does not announce new mail */ | /* driver does not announce new mail */ | |||
#define DR_NONEWMAIL (long) 0x4000 | #define DR_NONEWMAIL (long) 0x4000 | |||
/* driver does not announce new mail when RO */ | /* driver does not announce new mail when RO */ | |||
#define DR_NONEWMAILRONLY (long) 0x8000 | #define DR_NONEWMAILRONLY (long) 0x8000 | |||
/* driver can be halfopen */ | /* driver can be halfopen */ | |||
#define DR_HALFOPEN (long) 0x10000 | #define DR_HALFOPEN (long) 0x10000 | |||
#define DR_DIRFMT (long) 0x20000/* driver is a directory-format */ | #define DR_DIRFMT (long) 0x20000/* driver is a directory-format */ | |||
#define DR_MODSEQ (long) 0x40000/* driver supports modseqs */ | #define DR_MODSEQ (long) 0x40000/* driver supports modseqs */ | |||
skipping to change at line 899 | skipping to change at line 899 | |||
STRINGLIST *body; /* text in message body */ | STRINGLIST *body; /* text in message body */ | |||
STRINGLIST *cc; /* cc recipients */ | STRINGLIST *cc; /* cc recipients */ | |||
STRINGLIST *from; /* originator */ | STRINGLIST *from; /* originator */ | |||
STRINGLIST *keyword; /* keywords */ | STRINGLIST *keyword; /* keywords */ | |||
STRINGLIST *unkeyword; /* unkeywords */ | STRINGLIST *unkeyword; /* unkeywords */ | |||
STRINGLIST *subject; /* text in subject */ | STRINGLIST *subject; /* text in subject */ | |||
STRINGLIST *text; /* text in headers and body */ | STRINGLIST *text; /* text in headers and body */ | |||
STRINGLIST *to; /* to recipients */ | STRINGLIST *to; /* to recipients */ | |||
unsigned long larger; /* larger than this size */ | unsigned long larger; /* larger than this size */ | |||
unsigned long smaller; /* smaller than this size */ | unsigned long smaller; /* smaller than this size */ | |||
unsigned long older; /* older than this interval */ | ||||
unsigned long younger; /* younger than this interval */ | ||||
unsigned short sentbefore; /* sent before this date */ | unsigned short sentbefore; /* sent before this date */ | |||
unsigned short senton; /* sent on this date */ | unsigned short senton; /* sent on this date */ | |||
unsigned short sentsince; /* sent since this date */ | unsigned short sentsince; /* sent since this date */ | |||
unsigned short before; /* before this date */ | unsigned short before; /* before this date */ | |||
unsigned short on; /* on this date */ | unsigned short on; /* on this date */ | |||
unsigned short since; /* since this date */ | unsigned short since; /* since this date */ | |||
unsigned int answered : 1; /* answered messages */ | unsigned int answered : 1; /* answered messages */ | |||
unsigned int unanswered : 1; /* unanswered messages */ | unsigned int unanswered : 1; /* unanswered messages */ | |||
unsigned int deleted : 1; /* deleted messages */ | unsigned int deleted : 1; /* deleted messages */ | |||
unsigned int undeleted : 1; /* undeleted messages */ | unsigned int undeleted : 1; /* undeleted messages */ | |||
skipping to change at line 1536 | skipping to change at line 1538 | |||
long mail_valid_net_parse (char *name,NETMBX *mb); | long mail_valid_net_parse (char *name,NETMBX *mb); | |||
long mail_valid_net_parse_work (char *name,NETMBX *mb,char *service); | long mail_valid_net_parse_work (char *name,NETMBX *mb,char *service); | |||
void mail_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents); | void mail_scan (MAILSTREAM *stream,char *ref,char *pat,char *contents); | |||
void mail_list (MAILSTREAM *stream,char *ref,char *pat); | void mail_list (MAILSTREAM *stream,char *ref,char *pat); | |||
void mail_lsub (MAILSTREAM *stream,char *ref,char *pat); | void mail_lsub (MAILSTREAM *stream,char *ref,char *pat); | |||
long mail_subscribe (MAILSTREAM *stream,char *mailbox); | long mail_subscribe (MAILSTREAM *stream,char *mailbox); | |||
long mail_unsubscribe (MAILSTREAM *stream,char *mailbox); | long mail_unsubscribe (MAILSTREAM *stream,char *mailbox); | |||
long mail_create (MAILSTREAM *stream,char *mailbox); | long mail_create (MAILSTREAM *stream,char *mailbox); | |||
long mail_delete (MAILSTREAM *stream,char *mailbox); | long mail_delete (MAILSTREAM *stream,char *mailbox); | |||
long mail_rename (MAILSTREAM *stream,char *old,char *newname); | long mail_rename (MAILSTREAM *stream,char *old,char *newname); | |||
char *mail_utf7_valid (char *mailbox); | ||||
long mail_status (MAILSTREAM *stream,char *mbx,long flags); | long mail_status (MAILSTREAM *stream,char *mbx,long flags); | |||
long mail_status_default (MAILSTREAM *stream,char *mbx,long flags); | long mail_status_default (MAILSTREAM *stream,char *mbx,long flags); | |||
MAILSTREAM *mail_open (MAILSTREAM *stream,char *name,long options); | MAILSTREAM *mail_open (MAILSTREAM *stream,char *name,long options); | |||
MAILSTREAM *mail_open_work (DRIVER *d,MAILSTREAM *stream,char *name, | MAILSTREAM *mail_open_work (DRIVER *d,MAILSTREAM *stream,char *name, | |||
long options); | long options); | |||
MAILSTREAM *mail_close_full (MAILSTREAM *stream,long options); | MAILSTREAM *mail_close_full (MAILSTREAM *stream,long options); | |||
MAILHANDLE *mail_makehandle (MAILSTREAM *stream); | MAILHANDLE *mail_makehandle (MAILSTREAM *stream); | |||
void mail_free_handle (MAILHANDLE **handle); | void mail_free_handle (MAILHANDLE **handle); | |||
MAILSTREAM *mail_stream (MAILHANDLE *handle); | MAILSTREAM *mail_stream (MAILHANDLE *handle); | |||
void mail_fetch_fast (MAILSTREAM *stream,char *sequence,long flags); | void mail_fetch_fast (MAILSTREAM *stream,char *sequence,long flags); | |||
End of changes. 5 change blocks. | ||||
3 lines changed or deleted | 6 lines changed or added | |||
smtp.h | smtp.h | |||
---|---|---|---|---|
/* ======================================================================== | /* ======================================================================== | |||
* Copyright 1988-2006 University of Washington | * Copyright 1988-2007 University of Washington | |||
* | * | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | * You may obtain a copy of the License at | |||
* | * | |||
* http://www.apache.org/licenses/LICENSE-2.0 | * http://www.apache.org/licenses/LICENSE-2.0 | |||
* | * | |||
* | * | |||
* ======================================================================== | * ======================================================================== | |||
*/ | */ | |||
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 27 July 1988 | * Date: 27 July 1988 | |||
* Last Edited: 30 August 2006 | * Last Edited: 15 August 2007 | |||
* | * | |||
* This original version of this file is | * This original version of this file is | |||
* Copyright 1988 Stanford University | * Copyright 1988 Stanford University | |||
* and was developed in the Symbolic Systems Resources Group of the Knowled ge | * and was developed in the Symbolic Systems Resources Group of the Knowled ge | |||
* Systems Laboratory at Stanford University in 1987-88, and was funded by the | * Systems Laboratory at Stanford University in 1987-88, and was funded by the | |||
* Biomedical Research Technology Program of the NationalInstitutes of Heal th | * Biomedical Research Technology Program of the NationalInstitutes of Heal th | |||
* under grant number RR-00785. | * under grant number RR-00785. | |||
*/ | */ | |||
/* Constants (should be in smtp.c) */ | /* Constants (should be in smtp.c) */ | |||
skipping to change at line 72 | skipping to change at line 72 | |||
#define smtp_open(hostlist,options) \ | #define smtp_open(hostlist,options) \ | |||
smtp_open_full (NIL,hostlist,"smtp",NIL,options) | smtp_open_full (NIL,hostlist,"smtp",NIL,options) | |||
/* Function prototypes */ | /* Function prototypes */ | |||
void *smtp_parameters (long function,void *value); | void *smtp_parameters (long function,void *value); | |||
SENDSTREAM *smtp_open_full (NETDRIVER *dv,char **hostlist,char *service, | SENDSTREAM *smtp_open_full (NETDRIVER *dv,char **hostlist,char *service, | |||
unsigned long port,long options); | unsigned long port,long options); | |||
SENDSTREAM *smtp_close (SENDSTREAM *stream); | SENDSTREAM *smtp_close (SENDSTREAM *stream); | |||
long smtp_mail (SENDSTREAM *stream,char *type,ENVELOPE *msg,BODY *body); | long smtp_mail (SENDSTREAM *stream,char *type,ENVELOPE *msg,BODY *body); | |||
long smtp_verbose (SENDSTREAM *stream); | ||||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
utf8.h | utf8.h | |||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 11 June 1997 | * Date: 11 June 1997 | |||
* Last Edited: 25 May 2007 | * Last Edited: 9 October 2007 | |||
*/ | */ | |||
/* UTF-8 size and conversion routines from UCS-2 values (thus in the BMP). | /* UTF-8 size and conversion routines from UCS-2 values (thus in the BMP). | |||
* Don't use these if UTF-16 data (surrogate pairs) are an issue. | * Don't use these if UTF-16 data (surrogate pairs) are an issue. | |||
* For UCS-4 values, use the utf8_size() and utf8_put() functions. | * For UCS-4 values, use the utf8_size() and utf8_put() functions. | |||
*/ | */ | |||
#define UTF8_SIZE_BMP(c) ((c & 0xff80) ? ((c & 0xf800) ? 3 : 2) : 1) | #define UTF8_SIZE_BMP(c) ((c & 0xff80) ? ((c & 0xf800) ? 3 : 2) : 1) | |||
#define UTF8_PUT_BMP(b,c) { \ | #define UTF8_PUT_BMP(b,c) { \ | |||
if (c & 0xff80) { /* non-ASCII? */ \ | if (c & 0xff80) { /* non-ASCII? */ \ | |||
skipping to change at line 338 | skipping to change at line 338 | |||
#define UCS2_C1CONTROLEND 0x9F /* last C1 control */ | #define UCS2_C1CONTROLEND 0x9F /* last C1 control */ | |||
/* ISO 646 substituted Unicode codepoints */ | /* ISO 646 substituted Unicode codepoints */ | |||
#define UCS2_POUNDSTERLING 0x00a3 | #define UCS2_POUNDSTERLING 0x00a3 | |||
#define UCS2_YEN 0x00a5 | #define UCS2_YEN 0x00a5 | |||
#define UCS2_OVERLINE 0x203e | #define UCS2_OVERLINE 0x203e | |||
#define UCS2_EURO 0x20ac | #define UCS2_EURO 0x20ac | |||
#define UCS2_KATAKANA 0xff61 /* first katakana codepoint */ | #define UCS2_KATAKANA 0xff61 /* first katakana codepoint */ | |||
#define UCS2_BOM 0xfeff /* byte order mark */ | #define UCS2_BOM 0xfeff /* byte order mark */ | |||
#define UCS2_BOGON 0xfffd /* replacement character */ | #define UCS2_BOGON 0xfffd /* replacement character */ | |||
/* next two codepoints are not Unicode chars | ||||
*/ | ||||
#define UCS2_BOMCHECK 0xfffe /* used to check byte order with UCS2_BOM */ | ||||
#define UCS2_NOTCHAR 0xffff /* not a character */ | ||||
#define UCS4_BMPBASE 0x0000 /* Basic Multilingual Plane */ | #define UCS4_BMPBASE 0x0000 /* Basic Multilingual Plane */ | |||
#define UCS4_SMPBASE 0x10000 /* Supplementary Multilinugual Plane */ | #define UCS4_SMPBASE 0x10000 /* Supplementary Multilinugual Plane */ | |||
#define UCS4_SIPBASE 0x20000 /* Supplementary Ideographic Plane */ | #define UCS4_SIPBASE 0x20000 /* Supplementary Ideographic Plane */ | |||
/* EastAsianWidth says plane 3 is wide */ | /* EastAsianWidth says plane 3 is wide */ | |||
#define UCS4_UNABASE 0x40000 /* unassigned space */ | #define UCS4_UNABASE 0x40000 /* unassigned space */ | |||
#define UCS4_SSPBASE 0xe0000 /* Supplementary Special-purpose Plane */ | #define UCS4_SSPBASE 0xe0000 /* Supplementary Special-purpose Plane */ | |||
#define UCS4_PVTBASE 0xf0000 /* private-space (two planes) */ | #define UCS4_PVTBASE 0xf0000 /* private-space (two planes) */ | |||
#define UCS4_MAXUNICODE 0x10ffff/* highest Unicode codepoint */ | #define UCS4_MAXUNICODE 0x10ffff/* highest Unicode codepoint */ | |||
#define UTF16_BASE 0x10000 /* base of codepoints needing surrogates */ | ||||
#define UTF16_SHIFT 10 /* surrogate shift */ | ||||
#define UTF16_MASK 0x3ff /* surrogate mask */ | ||||
#define UTF16_SURR 0xd800 /* UTF-16 surrogate area */ | #define UTF16_SURR 0xd800 /* UTF-16 surrogate area */ | |||
#define UTF16_SURRH 0xd800 /* UTF-16 first high surrogate */ | #define UTF16_SURRH 0xd800 /* UTF-16 first high surrogate */ | |||
#define UTF16_SURRHEND 0xdbff /* UTF-16 last high surrogate */ | #define UTF16_SURRHEND 0xdbff /* UTF-16 last high surrogate */ | |||
#define UTF16_SURRL 0xdc00 /* UTF-16 first low surrogate */ | #define UTF16_SURRL 0xdc00 /* UTF-16 first low surrogate */ | |||
#define UTF16_SURRLEND 0xdfff /* UTF-16 last low surrogate */ | #define UTF16_SURRLEND 0xdfff /* UTF-16 last low surrogate */ | |||
#define UTF16_MAXSURR 0xdfff /* end of UTF-16 surrogates */ | #define UTF16_MAXSURR 0xdfff /* end of UTF-16 surrogates */ | |||
/* UBOGON is used to represent a codepoint in a character set which does n ot | /* UBOGON is used to represent a codepoint in a character set which does no t | |||
* map to Unicode. It is also used for mapping failures, e.g. incomplete | * map to Unicode. It is also used for mapping failures, e.g. incomplete | |||
* shift sequences. NOCHAR is used to represent a codepoint in Unicode | * shift sequences. This name has the same text width as 0x????, for | |||
* which does not map to the target character set. Note that these names | * convenience in the mapping tables. | |||
* have the same text width as 0x????, for convenience in the mapping table | * | |||
s. | * NOCHAR is used to represent a codepoint in Unicode which does not map to | |||
* the target character set in a reverse mapping table. This name has the | ||||
* same text width as 0x???? in case we ever add static reverse mapping tab | ||||
les. | ||||
*/ | */ | |||
#define UBOGON UCS2_BOGON | #define UBOGON UCS2_BOGON | |||
#define NOCHAR 0xffff | #define NOCHAR UCS2_NOTCHAR | |||
/* Codepoints in non-Unicode character sets */ | /* Codepoints in non-Unicode character sets */ | |||
/* Codepoints in ISO 646 character sets */ | /* Codepoints in ISO 646 character sets */ | |||
/* British ASCII codepoints */ | /* British ASCII codepoints */ | |||
#define BRITISH_POUNDSTERLING 0x23 | #define BRITISH_POUNDSTERLING 0x23 | |||
/* JIS Roman codepoints */ | /* JIS Roman codepoints */ | |||
End of changes. 6 change blocks. | ||||
7 lines changed or deleted | 17 lines changed or added | |||
utf8aux.h | utf8aux.h | |||
---|---|---|---|---|
/* ======================================================================== | /* ======================================================================== | |||
* Copyright 1988-2006 University of Washington | * Copyright 1988-2007 University of Washington | |||
* | * | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | * You may obtain a copy of the License at | |||
* | * | |||
* http://www.apache.org/licenses/LICENSE-2.0 | * http://www.apache.org/licenses/LICENSE-2.0 | |||
* | * | |||
* | * | |||
* ======================================================================== | * ======================================================================== | |||
*/ | */ | |||
skipping to change at line 26 | skipping to change at line 26 | |||
* | * | |||
* Author: Mark Crispin | * Author: Mark Crispin | |||
* Networks and Distributed Computing | * Networks and Distributed Computing | |||
* Computing & Communications | * Computing & Communications | |||
* University of Washington | * University of Washington | |||
* Administration Building, AG-44 | * Administration Building, AG-44 | |||
* Seattle, WA 98195 | * Seattle, WA 98195 | |||
* Internet: MRC@CAC.Washington.EDU | * Internet: MRC@CAC.Washington.EDU | |||
* | * | |||
* Date: 11 June 1997 | * Date: 11 June 1997 | |||
* Last Edited: 6 December 2006 | * Last Edited: 9 October 2007 | |||
*/ | */ | |||
/* Following routines are in utf8aux.c as these depend upon c-client. | /* Following routines are in utf8aux.c as these depend upon c-client. | |||
* Splitting these routines out makes it possible for pico to link with utf 8.o | * Splitting these routines out makes it possible for pico to link with utf 8.o | |||
* and a few rump routines (e.g., fs_get()) but not all the rest of c-clien t | * and a few rump routines (e.g., fs_get()) but not all the rest of c-clien t | |||
* (which pico does not need). | * (which pico does not need). | |||
*/ | */ | |||
void utf8_searchpgm (SEARCHPGM *pgm,char *charset); | void utf8_searchpgm (SEARCHPGM *pgm,char *charset); | |||
long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags); | long utf8_mime2text (SIZEDTEXT *src,SIZEDTEXT *dst,long flags); | |||
unsigned char *mime2_token (unsigned char *s,unsigned char *se, | unsigned char *mime2_token (unsigned char *s,unsigned char *se, | |||
unsigned char **t); | unsigned char **t); | |||
unsigned char *mime2_text (unsigned char *s,unsigned char *se); | unsigned char *mime2_text (unsigned char *s,unsigned char *se); | |||
long mime2_decode (unsigned char *e,unsigned char *t,unsigned char *te, | long mime2_decode (unsigned char *e,unsigned char *t,unsigned char *te, | |||
SIZEDTEXT *txt); | SIZEDTEXT *txt); | |||
unsigned char *utf8_to_mutf7 (unsigned char *src); | ||||
unsigned char *utf8_from_mutf7 (unsigned char *src); | ||||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||