]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/uregexc.cpp
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / i18n / uregexc.cpp
index 837bab0fcdc8ed118b0472fdeb45844b85a3a53f..6590020661e680b7005e48ba31473dde21f9d4a0 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   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 +12,8 @@
 #include "unicode/uregex.h"
 #include "unicode/unistr.h"
 
+U_NAMESPACE_USE
+
 //----------------------------------------------------------------------------------------
 //
 //    uregex_openC
@@ -33,7 +35,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