+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*****************************************************************************************
-* Copyright (C) 2013, International Business Machines Corporation and others.
+* Copyright (C) 2013-2015, International Business Machines Corporation and others.
* All Rights Reserved.
*****************************************************************************************
*/
#include "unicode/uregion.h"
#include "unicode/region.h"
#include "unicode/uenum.h"
+#include "unicode/strenum.h"
U_NAMESPACE_USE
U_CAPI UEnumeration* U_EXPORT2
uregion_getAvailable(URegionType type, UErrorCode *status)
{
- return uenum_openFromStringEnumeration( Region::getAvailable(type), status );
+ StringEnumeration* strenum = Region::getAvailable(type, *status);
+ return uenum_openFromStringEnumeration( strenum, status );
}
U_CAPI UEnumeration* U_EXPORT2
uregion_getContainedRegions(const URegion* uregion, UErrorCode *status)
{
- return uenum_openFromStringEnumeration( ((Region*)uregion)->getContainedRegions(), status);
+ StringEnumeration* strenum = ((Region*)uregion)->getContainedRegions(*status);
+ return uenum_openFromStringEnumeration( strenum, status);
}
U_CAPI UEnumeration* U_EXPORT2
uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status)
{
- return uenum_openFromStringEnumeration( ((Region*)uregion)->getContainedRegions(type), status);
+ StringEnumeration* strenum = ((Region*)uregion)->getContainedRegions(type, *status);
+ return uenum_openFromStringEnumeration( strenum, status);
}
U_CAPI UEnumeration* U_EXPORT2
uregion_getPreferredValues(const URegion* uregion, UErrorCode *status)
{
- return uenum_openFromStringEnumeration( ((Region*)uregion)->getPreferredValues(), status);
+ StringEnumeration* strenum = ((Region*)uregion)->getPreferredValues(*status);
+ return uenum_openFromStringEnumeration( strenum, status);
}