X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b25be06635768807f8f693286fa73bb2297bb06c..4388f060552cc537e71e957d32f35e9d75a61233:/icuSources/i18n/unicode/sortkey.h?ds=sidebyside diff --git a/icuSources/i18n/unicode/sortkey.h b/icuSources/i18n/unicode/sortkey.h index ef202dd9..17b65117 100644 --- a/icuSources/i18n/unicode/sortkey.h +++ b/icuSources/i18n/unicode/sortkey.h @@ -1,6 +1,6 @@ /* ***************************************************************************** - * Copyright (C) 1996-2006, International Business Machines Corporation and others. + * Copyright (C) 1996-2011, International Business Machines Corporation and others. * All Rights Reserved. ***************************************************************************** * @@ -29,6 +29,7 @@ */ #if !UCONFIG_NO_COLLATION +#ifndef U_HIDE_DEPRECATED_API #include "unicode/uobject.h" #include "unicode/unistr.h" @@ -243,10 +244,15 @@ private: * Returns an array of the collation key values as 16-bit integers. * The caller owns the storage and must delete it. * @param values Output param of the collation key values. + * @param capacity Size of the values array. * @param count output parameter of the number of collation key values * @return a pointer to an array of 16-bit collation key values. */ - void adopt(uint8_t *values, int32_t count); + void adopt(uint8_t *values, int32_t capacity, int32_t count); + /** + * Set a new length for a new sort key in the existing fBytes. + */ + void setLength(int32_t newLength); /* * Creates a collation key with a string. @@ -319,6 +325,7 @@ CollationKey::getByteArray(int32_t &count) const U_NAMESPACE_END +#endif /* U_HIDE_DEPRECATED_API */ #endif /* #if !UCONFIG_NO_COLLATION */ #endif