X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..08b89b0a244153b9f5bbb2f49c55ab0f7298122e:/icuSources/common/uset_props.cpp diff --git a/icuSources/common/uset_props.cpp b/icuSources/common/uset_props.cpp index d2f8824d..ed81d8b3 100644 --- a/icuSources/common/uset_props.cpp +++ b/icuSources/common/uset_props.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2002-2004, 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; @@ -133,14 +135,7 @@ uset_toPattern(const USet* set, return pat.extract(result, resultCapacity, *ec); } -U_CAPI USet* U_EXPORT2 -uprv_openRuleWhiteSpaceSet(UErrorCode* ec) { - static const UChar _PATTERN[] = { - /* "[[:Cf:][:WSpace:]]" */ - 91, 91, 58, 67, 102, 58, 93, 91, 58, 87, - 83, 112, 97, 99, 101, 58, 93, 93, 0 - }; - return uset_openPattern(_PATTERN, - sizeof(_PATTERN)/sizeof(_PATTERN[0])-1, ec); +U_CAPI void U_EXPORT2 +uset_closeOver(USet* set, int32_t attributes) { + ((UnicodeSet*) set)->UnicodeSet::closeOver(attributes); } -