ICU-10499 fix compile error with gcc.

X-SVN-Rev: 34872
This commit is contained in:
Andy Heninger 2014-01-10 22:51:31 +00:00
parent c25116c2c8
commit 9dd53d288d

View File

@ -160,7 +160,8 @@ getCount(const UChar* source, int32_t srcLen,
}
int32_t retLen = pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status);
RegexMatcher matcher(UnicodeString(patternStrings[option]), UREGEX_DOTALL, *status);
UnicodeString patternString(patternStrings[option]);
RegexMatcher matcher(patternString, UREGEX_DOTALL, *status);
if (U_FAILURE(*status)) {
return 0;
}
@ -199,7 +200,8 @@ getAt(const UChar* source, int32_t srcLen,
}
int32_t retLen = pattern->split(src, stringArray, MAX_SPLIT_STRINGS, *status);
RegexMatcher matcher(UnicodeString(patternStrings[option]), UREGEX_DOTALL, *status);
UnicodeString patternString(patternStrings[option]);
RegexMatcher matcher(patternString, UREGEX_DOTALL, *status);
if (U_FAILURE(*status)) {
return 0;
}