]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/unicode/sortkey.h
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / i18n / unicode / sortkey.h
index ef202dd9ba43b903a7e30ffc012f01bda9356acd..17b651173b0b106b2d4aaa229eda22857753e07e 100644 (file)
@@ -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