1 /* 2 * R : A Computer Language for Statistical Data Analysis 3 * Copyright (C) 2005 the R Core Team 4 * 5 * This header file is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU Lesser General Public License as published by 7 * the Free Software Foundation; either version 2.1 of the License, or 8 * (at your option) any later version. 9 * 10 * This file is part of R. R is distributed under the terms of the 11 * GNU General Public License, either Version 2, June 1991 or Version 3, 12 * June 2007. See doc/COPYRIGHTS for details of the copyright status of R. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public License 20 * along with this program; if not, a copy is available at 21 * https://www.R-project.org/Licenses/ 22 */ 23 24 /* 25 Interface to R's platform-independent implementation of iconv. 26 27 Part of the API. 28 */ 29 30 #ifndef R_ICONV_H 31 #define R_ICONV_H 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 /* from sysutils.c */ 38 #undef Riconv_open 39 #undef Riconv 40 #undef Riconv_close 41 void * Riconv_open (const char* tocode, const char* fromcode); 42 size_t Riconv (void * cd, const char **inbuf, size_t *inbytesleft, 43 char **outbuf, size_t *outbytesleft); 44 int Riconv_close (void * cd); 45 46 #ifdef __cplusplus 47 } 48 #endif 49 50 #endif /* R_ICONV_H */ 51