1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/common/ulist.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +/* 1.5 +****************************************************************************** 1.6 +* Copyright (C) 2009, International Business Machines 1.7 +* Corporation and others. All Rights Reserved. 1.8 +****************************************************************************** 1.9 +*/ 1.10 + 1.11 +#ifndef ULIST_H 1.12 +#define ULIST_H 1.13 + 1.14 +#include "unicode/utypes.h" 1.15 +#include "unicode/uenum.h" 1.16 + 1.17 +struct UList; 1.18 +typedef struct UList UList; 1.19 + 1.20 +U_CAPI UList * U_EXPORT2 ulist_createEmptyList(UErrorCode *status); 1.21 + 1.22 +U_CAPI void U_EXPORT2 ulist_addItemEndList(UList *list, const void *data, UBool forceDelete, UErrorCode *status); 1.23 + 1.24 +U_CAPI void U_EXPORT2 ulist_addItemBeginList(UList *list, const void *data, UBool forceDelete, UErrorCode *status); 1.25 + 1.26 +U_CAPI UBool U_EXPORT2 ulist_containsString(const UList *list, const char *data, int32_t length); 1.27 + 1.28 +U_CAPI void *U_EXPORT2 ulist_getNext(UList *list); 1.29 + 1.30 +U_CAPI int32_t U_EXPORT2 ulist_getListSize(const UList *list); 1.31 + 1.32 +U_CAPI void U_EXPORT2 ulist_resetList(UList *list); 1.33 + 1.34 +U_CAPI void U_EXPORT2 ulist_deleteList(UList *list); 1.35 + 1.36 +/* 1.37 + * The following are for use when creating UEnumeration object backed by UList. 1.38 + */ 1.39 +U_CAPI void U_EXPORT2 ulist_close_keyword_values_iterator(UEnumeration *en); 1.40 + 1.41 +U_CAPI int32_t U_EXPORT2 ulist_count_keyword_values(UEnumeration *en, UErrorCode *status); 1.42 + 1.43 +U_CAPI const char * U_EXPORT2 ulist_next_keyword_value(UEnumeration* en, int32_t *resultLength, UErrorCode* status); 1.44 + 1.45 +U_CAPI void U_EXPORT2 ulist_reset_keyword_values_iterator(UEnumeration* en, UErrorCode* status); 1.46 + 1.47 +U_CAPI UList * U_EXPORT2 ulist_getListFromEnum(UEnumeration *en); 1.48 + 1.49 +#endif