1 /* 2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3 * Copyright (C) 2015 - Scilab Enterprises - Antoine ELIAS 4 * 5 * Copyright (C) 2012 - 2016 - Scilab Enterprises 6 * 7 * This file is hereby licensed under the terms of the GNU GPL v2.0, 8 * pursuant to article 5.3.4 of the CeCILL v.2.1. 9 * This file was originally licensed under the terms of the CeCILL v2.1, 10 * and continues to be available under such terms. 11 * For more information, see the COPYING file which you should have received 12 * along with this program. 13 */ 14 15 #ifndef __STRING_API__ 16 #define __STRING_API__ 17 18 #if !defined(__INTERNAL_API_SCILAB__) 19 #error Do not include api_string.h. Include api_scilab.h instead. 20 #endif 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 #define scilab_createStringMatrix API_PROTO(createStringMatrix) 27 #define scilab_createStringMatrix2d API_PROTO(createStringMatrix2d) 28 #define scilab_createString API_PROTO(createString) 29 #define scilab_getStringArray API_PROTO(getStringArray) 30 #define scilab_setStringArray API_PROTO(setStringArray) 31 #define scilab_getString API_PROTO(getString) 32 #define scilab_setString API_PROTO(setString) 33 34 scilabVar API_PROTO(createStringMatrix)(scilabEnv env, int dim, const int* dims); 35 scilabVar API_PROTO(createStringMatrix2d)(scilabEnv env, int row, int col); 36 scilabVar API_PROTO(createString)(scilabEnv env, const wchar_t* val); 37 38 scilabStatus API_PROTO(getStringArray)(scilabEnv env, scilabVar var, wchar_t*** strs); 39 scilabStatus API_PROTO(getString)(scilabEnv env, scilabVar var, wchar_t** str); 40 scilabStatus API_PROTO(setStringArray)(scilabEnv env, scilabVar var, const wchar_t* const* strs); 41 scilabStatus API_PROTO(setString)(scilabEnv env, scilabVar var, const wchar_t* str); 42 43 #ifdef __cplusplus 44 } 45 #endif 46 #endif /* __STRING_API__ */ 47