Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: icu46/source/i18n/uregexc.cpp

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu46/source/i18n/uregex.cpp ('k') | icu46/source/i18n/usearch.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 *******************************************************************************
3 * Copyright (C) 2003-2006, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 *******************************************************************************
6 * file name: regexc.cpp
7 * description: The purpose of this function is to separate the codepage
8 * conversion from the rest of the uregex_ API. This can removes any
9 * dependency on codepage conversion, which reduces the overhead of
10 */
11
12 #include "unicode/uregex.h"
13 #include "unicode/unistr.h"
14
15 U_NAMESPACE_USE
16
17 //------------------------------------------------------------------------------ ----------
18 //
19 // uregex_openC
20 //
21 //------------------------------------------------------------------------------ ----------
22 #if !UCONFIG_NO_CONVERSION && !UCONFIG_NO_REGULAR_EXPRESSIONS
23
24 U_CAPI URegularExpression * U_EXPORT2
25 uregex_openC( const char *pattern,
26 uint32_t flags,
27 UParseError *pe,
28 UErrorCode *status) {
29 if (U_FAILURE(*status)) {
30 return NULL;
31 }
32 if (pattern == NULL) {
33 *status = U_ILLEGAL_ARGUMENT_ERROR;
34 return NULL;
35 }
36
37 UnicodeString patString(pattern);
38 return uregex_open(patString.getBuffer(), patString.length(), flags, pe, sta tus);
39 }
40 #endif
OLDNEW
« no previous file with comments | « icu46/source/i18n/uregex.cpp ('k') | icu46/source/i18n/usearch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698