]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/uset_props.cpp
ICU-531.48.tar.gz
[apple/icu.git] / icuSources / common / uset_props.cpp
index d36a5250bd185290ddbbcfc8838331bacef8d074..ed81d8b39dc1c5ce05dc65bc49be5602301a1c41 100644 (file)
@@ -1,7 +1,7 @@
 /*
 *******************************************************************************
 *
-*   Copyright (C) 2002-2005, International Business Machines
+*   Copyright (C) 2002-2011, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 *******************************************************************************
@@ -25,6 +25,8 @@
 #include "unicode/ustring.h"
 #include "unicode/parsepos.h"
 
+U_NAMESPACE_USE
+
 U_CAPI USet* U_EXPORT2
 uset_openPattern(const UChar* pattern, int32_t patternLength,
                  UErrorCode* ec)
@@ -36,7 +38,7 @@ uset_openPattern(const UChar* pattern, int32_t patternLength,
         *ec = U_MEMORY_ALLOCATION_ERROR;
         return 0;
     }
-    
+
     if (U_FAILURE(*ec)) {
         delete set;
         set = NULL;
@@ -56,7 +58,7 @@ uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
         *ec = U_MEMORY_ALLOCATION_ERROR;
         return 0;
     }
-    
+
     if (U_FAILURE(*ec)) {
         delete set;
         set = NULL;
@@ -132,3 +134,8 @@ uset_toPattern(const USet* set,
     ((const UnicodeSet*) set)->toPattern(pat, escapeUnprintable);
     return pat.extract(result, resultCapacity, *ec);
 }
+
+U_CAPI void U_EXPORT2
+uset_closeOver(USet* set, int32_t attributes) {
+    ((UnicodeSet*) set)->UnicodeSet::closeOver(attributes);
+}