RAPI
|
00001 /* 00002 * R : A Computer Language for Statistical Data Analysis 00003 * Copyright (C) 2005 the R Core Team 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU Lesser General Public License as published by 00007 * the Free Software Foundation; either version 2.1 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public License 00016 * along with this program; if not, a copy is available at 00017 * https://www.R-project.org/Licenses/ 00018 */ 00019 00020 /* 00021 Interface to R's platform-independent implementation of iconv. 00022 00023 Part of the API. 00024 */ 00025 00026 #ifndef R_ICONV_H 00027 #define R_ICONV_H 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 /* from sysutils.c */ 00034 #undef Riconv_open 00035 #undef Riconv 00036 #undef Riconv_close 00037 void * Riconv_open (const char* tocode, const char* fromcode); 00038 size_t Riconv (void * cd, const char **inbuf, size_t *inbytesleft, 00039 char **outbuf, size_t *outbytesleft); 00040 int Riconv_close (void * cd); 00041 00042 #ifdef __cplusplus 00043 } 00044 #endif 00045 00046 #endif /* R_ICONV_H */