ICU-990 backslash escape single quotes outside of quoted strings

X-SVN-Rev: 5142
This commit is contained in:
Alan Liu 2001-06-29 19:39:03 +00:00
parent 34915937bd
commit f89574d8e8

View File

@ -523,11 +523,11 @@ void TransliterationRule::_appendToRule(UnicodeString& rule,
}
}
// Double ' and '\' and don't begin a quote just for them
// Escape ' and '\' and don't begin a quote just for them
else if (quoteBuf.length() == 0 &&
(c == (UChar) 0x0027 /*'*/ ||
c == (UChar) 0x005C /*\*/)) {
rule.append(c);
rule.append((UChar) 0x005C);
rule.append(c);
}