1 /* Copyright (C) 2000-2015 Lavtech.com corp. All rights reserved.
2 
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; either version 2 of the License, or
6    (at your option) any later version.
7 
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12 
13    You should have received a copy of the GNU General Public License
14    along with this program; if not, write to the Free Software
15    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16 */
17 
18 #ifndef _UDM_TEXTLIST_H
19 #define _UDM_TEXTLIST_H
20 
21 UDM_API(void) UdmTextListInit(UDM_TEXTLIST *t);
22 UDM_API(void) UdmTextListAdd(UDM_TEXTLIST *tlist,const UDM_TEXTITEM *item);
23 UDM_API(void) UdmTextListAddConst(UDM_TEXTLIST *L,
24                                   const UDM_CONST_TEXTITEM *item,
25                                   const UDM_TEXT_PARAM *Param);
26 UDM_API(void) UdmTextListAppend(UDM_TEXTLIST *tlist,const UDM_TEXTITEM *item);
27 UDM_API(void) UdmTextListFree(UDM_TEXTLIST *tlist);
28 
29 udm_rc_t UdmTextListToConstWordList(const UDM_TEXTLIST *List,
30                                     UDM_UNIDATA *unidata,
31                                     UDM_CHARSET *cs, int cnvflags,
32                                     UDM_CONSTWORDLIST *CWL);
33 udm_rc_t UdmTextItemNormalizeDecimal(UDM_TEXTITEM *Item);
34 
35 void UdmTextParamInit(UDM_TEXT_PARAM *Param,
36                       udm_textlist_flag_t flags, udm_secno_t secno);
37 void UdmTextItemInit(UDM_TEXTITEM *Item, udm_textlist_flag_t flags);
38 void UdmConstTextItemInit(UDM_CONST_TEXTITEM *Item);
39 
40 #endif
41