From: Jeff Genovy <29107334+jefgen@users.noreply.github.com> Date: Fri, 16 Feb 2018 02:04:18 +0000 (+0000) Subject: ICU-12647 Use inline string literals instead of renaming the variables. X-Git-Tag: release-61-rc~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05b4908921c421acc2a26607e08f633bdaef4863;p=icu ICU-12647 Use inline string literals instead of renaming the variables. X-SVN-Rev: 40932 --- diff --git a/icu4c/source/i18n/regexcmp.cpp b/icu4c/source/i18n/regexcmp.cpp index ebfb024a8a1..ca1008c0d06 100644 --- a/icu4c/source/i18n/regexcmp.cpp +++ b/icu4c/source/i18n/regexcmp.cpp @@ -4450,11 +4450,9 @@ UnicodeSet *RegexCompile::createSetForProperty(const UnicodeString &propName, UB // See if the property looks like a Java "InBlockName", which // we will recast as "Block=BlockName" // - static const UChar strIN[] = {0x49, 0x6E, 0}; // "In" - static const UChar strBLOCK[] = {0x42, 0x6C, 0x6f, 0x63, 0x6b, 0x3d, 00}; // "Block=" - if (mPropName.startsWith(strIN, 2) && propName.length()>=3) { + if (mPropName.startsWith(u"In", 2) && propName.length()>=3) { setExpr.truncate(4); // Leaves "[\p{", or "[\P{" - setExpr.append(strBLOCK, -1); + setExpr.append(u"Block=", -1); setExpr.append(UnicodeString(mPropName, 2)); // Property with the leading "In" removed. setExpr.append(chRBrace); setExpr.append(chRBracket);