// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * * Copyright (C) 2002-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: uenum.c * encoding: UTF-8 * tab size: 8 (not used) * indentation:2 * * created on: 2002jul08 * created by: Vladimir Weinstein */ #include "unicode/putil.h" #include "uenumimp.h" #include "cmemory.h" /* Layout of the baseContext buffer. */ _UEnumBuffer; /* Extra bytes to allocate in the baseContext buffer. */ static const int32_t PAD = …; /* Return a pointer to the baseContext buffer, possibly allocating or reallocating it if at least 'capacity' bytes are not available. */ static void* _getBuffer(UEnumeration* en, int32_t capacity) { … } U_CAPI void U_EXPORT2 uenum_close(UEnumeration* en) { … } U_CAPI int32_t U_EXPORT2 uenum_count(UEnumeration* en, UErrorCode* status) { … } /* Don't call this directly. Only uenum_unext should be calling this. */ U_CAPI const char16_t* U_EXPORT2 uenum_unextDefault(UEnumeration* en, int32_t* resultLength, UErrorCode* status) { … } /* Don't call this directly. Only uenum_next should be calling this. */ U_CAPI const char* U_EXPORT2 uenum_nextDefault(UEnumeration* en, int32_t* resultLength, UErrorCode* status) { … } U_CAPI const char16_t* U_EXPORT2 uenum_unext(UEnumeration* en, int32_t* resultLength, UErrorCode* status) { … } U_CAPI const char* U_EXPORT2 uenum_next(UEnumeration* en, int32_t* resultLength, UErrorCode* status) { … } U_CAPI void U_EXPORT2 uenum_reset(UEnumeration* en, UErrorCode* status) { … }