]> granicus.if.org Git - icu/commitdiff
ICU-9778 replace use of deprecated ucol_getContractions()
authorMarkus Scherer <markus.icu@gmail.com>
Fri, 28 Feb 2014 21:09:19 +0000 (21:09 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Fri, 28 Feb 2014 21:09:19 +0000 (21:09 +0000)
X-SVN-Rev: 35266

icu4c/source/i18n/collationbuilder.cpp

index 2d7ae9d8a5520ed456a2bcf9de9ad455adc9cfe4..337bcddd08480e481badf961ea7ef8c1262a7f0f 100644 (file)
@@ -1665,7 +1665,8 @@ ucol_getUnsafeSet( const UCollator *coll,
     USet *contractions = uset_open(0,0);
 
     int32_t i = 0, j = 0;
-    int32_t contsSize = ucol_getContractions(coll, contractions, status);
+    ucol_getContractionsAndExpansions(coll, contractions, NULL, FALSE, status);
+    int32_t contsSize = uset_size(contractions);
     UChar32 c = 0;
     // Contraction set consists only of strings
     // to get unsafe code points, we need to