From fae8399d33ec61b9255478888b21f2ff8d597357 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Mon, 11 Mar 2002 17:35:11 +0000 Subject: [PATCH] ICU-1754 add some const where necessary X-SVN-Rev: 7930 --- icu4c/source/common/uset.c | 4 ++-- icu4c/source/common/uset.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4c/source/common/uset.c b/icu4c/source/common/uset.c index 28100d356d1..b0d1e3069f9 100644 --- a/icu4c/source/common/uset.c +++ b/icu4c/source/common/uset.c @@ -339,7 +339,7 @@ uset_serialize(const USet *set, uint16_t *dest, int32_t destCapacity, UErrorCode } U_CAPI UBool U_EXPORT2 -uset_getSerializedSet(USerializedSet *fillSet, uint16_t *src, int32_t srcCapacity) { +uset_getSerializedSet(USerializedSet *fillSet, const uint16_t *src, int32_t srcCapacity) { int32_t length; if(fillSet==NULL) { @@ -411,7 +411,7 @@ uset_countSerializedRanges(const USerializedSet *set) { U_CAPI UBool U_EXPORT2 uset_getSerializedRange(const USerializedSet *set, int32_t rangeIndex, UChar32 *pStart, UChar32 *pLimit) { - uint16_t *array; + const uint16_t *array; int32_t bmpLength, length; if(set==NULL || rangeIndex<0 || pStart==NULL || pLimit==NULL) { diff --git a/icu4c/source/common/uset.h b/icu4c/source/common/uset.h index 84fdf9c8e34..632d727301f 100644 --- a/icu4c/source/common/uset.h +++ b/icu4c/source/common/uset.h @@ -26,7 +26,7 @@ struct USet; typedef struct USet USet; struct USerializedSet { - uint16_t *array; + const uint16_t *array; int32_t bmpLength, length; }; typedef struct USerializedSet USerializedSet; @@ -60,7 +60,7 @@ U_CAPI int32_t U_EXPORT2 uset_serialize(const USet *set, uint16_t *dest, int32_t destCapacity, UErrorCode *pErrorCode); U_CAPI UBool U_EXPORT2 -uset_getSerializedSet(USerializedSet *fillSet, uint16_t *src, int32_t srcCapacity); +uset_getSerializedSet(USerializedSet *fillSet, const uint16_t *src, int32_t srcCapacity); U_CAPI UBool U_EXPORT2 uset_serializedContains(const USerializedSet *set, UChar32 c);