| 1 | /* Conversion of files between different charsets and surfaces. |
| 2 | Copyright © 1996-2000 Free Software Foundation, Inc. |
| 3 | Contributed by François Pinard <[email protected]>, 1996. |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public License |
| 7 | as published by the Free Software Foundation; either version 3 of the |
| 8 | License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be |
| 11 | useful, but WITHOUT ANY WARRANTY; without even the implied warranty |
| 12 | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with the Recode Library; see the file `COPYING.LIB'. |
| 17 | If not, see <https://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | /* Maximum number of characters per MIME line. */ |
| 21 | #define MIME_LINE_LENGTH 76 |
| 22 | |
| 23 | /* Tables declared in base64.c and also used in utf7.c. */ |
| 24 | extern char base64_value_to_char[64]; |
| 25 | extern short base64_char_to_value[128]; |
| 26 | |
| 27 | /* Macros. */ |
| 28 | |
| 29 | #define IS_BASE64(Character) \ |
| 30 | (IS_ASCII (Character) && base64_char_to_value[Character] >= 0) |