]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/uregexc.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / i18n / uregexc.cpp
index 837bab0fcdc8ed118b0472fdeb45844b85a3a53f..c7d3bcd2c743fb1865cb7a177c5e12cda6ee12f4 100644 (file)
@@ -1,6 +1,8 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 *******************************************************************************
-*   Copyright (C) 2003-2005, International Business Machines
+*   Copyright (C) 2003-2006, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 *   file name:   regexc.cpp
@@ -12,6 +14,8 @@
 #include "unicode/uregex.h"
 #include "unicode/unistr.h"
 
+U_NAMESPACE_USE
+
 //----------------------------------------------------------------------------------------
 //
 //    uregex_openC
@@ -33,7 +37,6 @@ uregex_openC( const char           *pattern,
     }
 
     UnicodeString patString(pattern);
-    URegularExpression *re = uregex_open(patString.getBuffer(), patString.length(), flags, pe, status);
-    return re;
+    return uregex_open(patString.getBuffer(), patString.length(), flags, pe, status);
 }
 #endif