mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-10499 fix compile error with gcc.
X-SVN-Rev: 34872
This commit is contained in:
parent
c25116c2c8
commit
9dd53d288d
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue