mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1754 add some const where necessary
X-SVN-Rev: 7930
This commit is contained in:
parent
36e2c09abf
commit
fae8399d33
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue