00001 /* Part of the culibs project, <http://www.eideticdew.org/culibs/>. 00002 * Copyright (C) 2008 Petter Urkedal <urkedal@nbi.dk> 00003 * 00004 * This program is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 3 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef CUEX_STR_ALGO_H 00019 #define CUEX_STR_ALGO_H 00020 00021 #include <cuex/fwd.h> 00022 00023 CU_BEGIN_DECLARATIONS 00024 /*!\defgroup cuex_str_algo_h cuex/str_algo.h: String-Related Algorithms 00025 *@{\ingroup cuex_mod */ 00026 00027 /*!If \a e is a left-associated \a opr combination of identifiers, puts each to 00028 * \a buf as a character string, delimited by \a delim and returns true, 00029 * othewise returns false. */ 00030 cu_bool_t cuex_left_idrjoin_charbuf(cu_buffer_t buf, cuex_meta_t opr, cuex_t e, 00031 char const *delim); 00032 00033 /*!If \a e is a left-associated \a opr combination of identifiers, returns a 00034 * string formed by the same identifiers delimited by \a delim, otherwise 00035 * returns \c NULL. */ 00036 cu_str_t cuex_left_idrjoin_str(cuex_meta_t opr, cuex_t e, char const *delim); 00037 00038 /*!if \a e is a left-associated \a opr combination of identifiers, returns a C 00039 * string formed by the same identifiers delimited by \a delim, otherwise 00040 * returns \c NULL. */ 00041 char const *cuex_left_idrjoin_cstr(cuex_meta_t opr, cuex_t e, 00042 char const *delim); 00043 00044 /*!@}*/ 00045 CU_END_DECLARATIONS 00046 00047 #endif