Lines Matching refs:list

202 	StrList*	list;
204 list = xmalloc (sizeof (StrList));
205 list->next = NULL;
207 return list;
211 str_list_destroy (StrList* list)
213 if (list) {
214 str_list_destroy (list->next);
215 str_list_destroy_node (list);
220 str_list_destroy_node (StrList* list)
222 void *p = (char *) (list->str); /* discard const */
224 free (list);
236 str_list_duplicate (const StrList* list)
238 if (list)
239 return str_list_join (str_list_duplicate_node (list),
240 str_list_duplicate (list->next));
261 _str_list_append (StrList* list, const wchar_t* str)
265 if (list) {
266 for (walk = list; walk->next; walk = walk->next);
270 walk = list = str_list_alloc ();
274 return list;
278 str_list_append (StrList* list, const char* str)
280 return _str_list_append (list, gettext_to_wchar (str));
284 str_list_append_unique (StrList* list, const char* str)
289 for (walk=list; walk; walk=walk->next) {
293 return list;
298 return _str_list_append (list, new_str);
302 str_list_insert (StrList* list, const char* str)
304 return str_list_join (str_list_create (str, NULL), list);
312 StrList* list;
314 list = str_list_append (NULL, first);
319 str_list_append (list, str);
323 return list;
331 StrList* list;
333 list = str_list_append (NULL, first);
338 str_list_append_unique (list, str);
342 return list;
346 str_list_convert_node (const StrList* list)
348 return wchar_to_str (list->str, 0);
352 str_list_convert (const StrList* list)
359 for (walk = list; walk; walk = walk->next) {
377 str_list_print (const StrList* list)
381 for (walk=list; walk; walk=walk->next) {
433 str_list_print_wrap (const StrList* list, int line_length, int offset,
449 for (walk=list; walk; walk=walk->next) {
503 _str_list_match_node (const StrList* list, const wchar_t* str)
505 if (wchar_strcasecmp (list->str, str) == 0)
507 if (wchar_strncasecmp (list->str, str, wchar_strlen (str)) == 0)
513 str_list_match_node (const StrList* list, const char* str)
518 status = _str_list_match_node (list, wc_str);
529 str_list_match_any (const StrList* list, const char* str)
535 for (walk = list; walk; walk = walk->next) {
546 str_list_match (const StrList* list, const char* str)
553 for (walk = list; walk; walk = walk->next) {
571 str_list_length (const StrList* list)
576 for (walk = list; walk; walk = walk->next)